public ActionResult Create(BranchVM itemVm) { itemVm.Date = DateTime.Now; if (ModelState.IsValid) { if (branchDa.IsBranchSaved(itemVm)) { return(RedirectToAction("Index")); } } ModelVm.SelectList = branchDa.GetBranchSelectList(); ModelVm.Code = branchDa.GetBranchCode(); return(View(ModelVm)); }