/**/ public ActionResult transferProcedure(String codeProcedure, int idProcedure) { ViewBag.idProcedure = idProcedure; ViewBag.codeProcedure = codeProcedure; ViewBag.date = DateTime.Now.ToString("yyyy-MM-dd"); ViewBag.deparmentTable = con.getDepartments(); return(View()); } /**/ public ActionResult saveTransferProcedure(FormCollection form) { int idProc = Int32.Parse(form["idProcedure"].ToString()); String code = form["codeProcedure"]; int recive = Int32.Parse(form["department"]); String justi = form["justification"]; int send = Int32.Parse(Session["ID"].ToString()); int flag = con.TransferProcedure(idProc, recive, send, code, justi); return(RedirectToAction("dailyProcedure", "Procedure")); }