// GET: Procedure public ActionResult Create() { ViewBag.date = DateTime.Now.ToString("yyyy-MM-dd"); ViewBag.maxDate = DateTime.Now.ToString("yyyy-MM-dd"); ViewBag.minDate = (DateTime.Now.AddDays(-14)).ToString("yyyy-MM-dd"); ViewBag.deparmentTable = con.getDepartments(); ViewBag.procedureType = con.getProcedureType(); ViewBag.identifyType = con.getIdentifyType(); return(View()); }