/// <summary> /// Returns a partialView with a list /// </summary> /// <returns></returns> public ActionResult Listagem(int? page) { page = page ?? 1; var perfis = new PerfilCompradorService().GetByPage(page.Value); var list = new MvcList<Ecommerce_Perfil>(perfis.Item1, page.Value, perfis.Item2, Settings.QuantityRegistersPerPage); return PartialView(list); }
/// <summary> /// Returns the principal View of NewsLetter for Generate /// </summary> /// <returns></returns> public ActionResult List() { var estadoService = new EstadoService(); var perfilCompradorService = new PerfilCompradorService(); var getAllEstados = estadoService.GetAll(); var getAllPerfisComprador = perfilCompradorService.GetAll(); ViewBag.Estados = GetEstadosListItem(getAllEstados); ViewBag.Cidades = new List<SelectListItem>(); ViewBag.Perfis = GetPerfisCompradorListItem(getAllPerfisComprador); return View("List"); }
/// <summary> /// Returns a view with a form for Edition /// </summary> /// <returns></returns> public ActionResult Editar(int id) { var pc = new PerfilCompradorService().GetById(id); return View(pc); }