public ActionResult Index() { IncidenciaCEN inc = new IncidenciaCEN(); IList <IncidenciaEN> inci = inc.ReadAll(0, -1); IEnumerable <Incidencia> list = new AssemblerIncidencia().ConvertListENToModel(inci).ToList(); return(View(list)); }
public ActionResult Edit(int id) { Incidencia inc = null; SessionInitialize(); IncidenciaEN incEN = new IncidenciaCAD(session).ReadOIDDefault(id); inc = new AssemblerIncidencia().ConvertENToModelUI(incEN); SessionClose(); return(View(inc)); }