Esempio n. 1
0
        public ActionResult Insert(FormCollection fc)
        {
            UNIDAD_DETALLE dto = new UNIDAD_DETALLE();

            dto.ID_UNIDAD      = Convert.ToInt32(fc["ID_UNIDAD"]);
            dto.ID_TAREA       = Convert.ToInt32(fc["ID_TAREA"]);
            dto.ESTADO         = Convert.ToInt32(fc["ESTADO"]);
            dto.FECHA_ESTIMADA = fc["FECHA_ESTIMADA"];
            dto.Rut_Usu        = Convert.ToInt32(fc["Rut_Usu"]);
            if (Session["Perfil"] != null)
            {
                NegocioUNIDADDET obj = new NegocioUNIDADDET();
                obj.Insert(dto);
                return(RedirectToAction("Read"));
            }
            else
            {
                return(View("../Mantenedor/LoginProcess"));
            }
        }