public ActionResult Update(UNIDAD_DETALLE dto) { if (Session["Perfil"] != null) { NegocioUNIDADDET obj = new NegocioUNIDADDET(); obj.Update(dto); return(RedirectToAction("Read")); } else { return(View("../Mantenedor/LoginProcess")); } }
public ActionResult Update2(FormCollection fc) { if (Session["Perfil"] != null) { UNIDAD_DETALLE dto = new UNIDAD_DETALLE(); dto.id = Convert.ToInt32(fc["id"]); dto.ID_UNIDAD = Convert.ToInt32(fc["ID_UNIDAD"]); dto.ID_TAREA = Convert.ToInt32(fc["ID_TAREA"]); dto.ESTADO = Convert.ToInt32(fc["ESTADO"]); dto.Rut_Usu = Convert.ToInt32(fc["Rut_Usu"]); dto.FECHA_ESTIMADA = Convert.ToString(fc["FECHA_ESTIMADA"]); NegocioUNIDADDET obj = new NegocioUNIDADDET(); obj.Update(dto); return(RedirectToAction("Read2", "UNIDADDETALLE", new { ID_UNIDAD = dto.ID_UNIDAD })); } else { return(View("../Mantenedor/LoginProcess")); } }