public ActionResult Upload() { var viewModel = new CodesUploadViewModel { GameIds = dbContext.Games.Select(g => g.Id).ToList(), GameNames = dbContext.Games.Select(g => g.Name).ToList() }; return(View("CodeUpload", viewModel)); }
public ActionResult UploadCodes(CodesUploadViewModel model) { //TODO return(new HttpStatusCodeResult(System.Net.HttpStatusCode.NoContent)); }