// GET: SymbolFiles/EditFile/5 public ActionResult EditFile(Guid?systemid) { if (systemid == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } SymbolFile symbolFile = _symbolService.GetSymbolFile(systemid.Value); if (symbolFile == null) { return(HttpNotFound()); } ViewBag.Sizes = new SelectList(CodeList.Size, "Key", "Value", symbolFile.Size); ViewBag.SymbolGraphics = new SelectList(CodeList.SymbolGraphics, "Key", "Value", symbolFile.Type); return(View(symbolFile)); }