public ActionResult IndexUser() { PredefinidaCEN pred = new PredefinidaCEN(); IList <PredefinidaEN> predEn = pred.ReadAll(0, -1); IEnumerable <Predefinida> list = new AssemblerPredefinida().ConvertListENToModel(predEn).ToList(); return(View(list)); }
public ActionResult Top() { PredefinidaCEN p = new PredefinidaCEN(); IList <PredefinidaEN> lista = p.TopVentas(); IEnumerable <Predefinida> list = new AssemblerPredefinida().ConvertListENToModel(lista).ToList(); return(View(list)); }
public ActionResult Edit(int id) { Predefinida pred = null; SessionInitialize(); PredefinidaEN predEN = new PredefinidaCAD(session).ReadOIDDefault(id); pred = new AssemblerPredefinida().ConvertENToModelUI(predEN); SessionClose(); return(View(pred)); }