Set defaults for new builds

This commit is contained in:
Thomas Hounsell 2015-10-15 22:42:31 +01:00
parent 8126e77347
commit 0290d04d4e

View File

@ -254,7 +254,15 @@ public async Task<ActionResult> viewVersionPage(int major, int minor, int page)
}
[Route("add/"), Authorize]
public ActionResult addBuild() { return View("editBuild"); }
public ActionResult addBuild()
{
BuildModel b = new BuildModel()
{
SourceType = TypeOfSource.PrivateLeak,
FlightLevel = LevelOfFlight.None
};
return View("editBuild", b);
}
[Route("add/"), Authorize, HttpPost]
public async Task<ActionResult> addBuild(BuildModel build)