public ActionResult Create([Bind(Include = "Id,ApprovalCount,Rank,WithRequirements,WithException,RequestType")] ApprovalSetup approvalSetup) { if (ModelState.IsValid) { db.ApprovalSetup.Add(approvalSetup); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(approvalSetup)); }
public ActionResult Create([Bind(Include = "Id,Description,Code")] MaintenanceMaster maintenanceMaster) { if (ModelState.IsValid) { db.MaintenanceMaster.Add(maintenanceMaster); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(maintenanceMaster)); }