Ejemplo n.º 1
0
        public ActionResult AddProcedure(FormCollection form)
        {
            DateTime date              = DateTime.Parse(form["procedureDate"]);
            int      departmentId      = Int32.Parse(form["department"]);
            int      idTypeOfIdentify  = Int32.Parse(form["idType"]);
            String   personID          = form["personId"];
            String   personName        = form["personName"];
            String   personContact     = form["personContact"];
            int      idTypeOfProcedure = Int32.Parse(form["procedureType"]);
            String   detail            = form["procedureDetail"];
            int      userId            = Int32.Parse(Session["platfomerID"].ToString());

            ViewBag.code = con.insertProcedure(date, departmentId, idTypeOfIdentify, personID, personName, personContact, idTypeOfProcedure, detail, userId);
            return(View());
        }