public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var designation = designService.GetOneModel(Convert.ToInt32(id)); if (designation == null) { return(View()); } return(View(@"~\Views\Configuration\Designation\Edit.cshtml", designation)); }
public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var education = educationService.GetOneModel(Convert.ToInt32(id)); if (education == null) { return(HttpNotFound()); } return(View(@"~\Views\Configuration\Education\Edit.cshtml", education)); }
public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var office = officeTypeService.GetOneModel(Convert.ToInt32(id)); if (office == null) { return(HttpNotFound()); } return(View(@"~\Views\Configuration\OfficeType\Edit.cshtml", office)); }