Ejemplo n.º 1
0
        public ActionResult Listagem(int? page)
        {
            page = page ?? 1;
            var tipoPele = new TipoPeleService().GetByPage(page.Value);

            var list = new MvcList<Ecommerce_TipoPele>(tipoPele.Item1, page.Value, tipoPele.Item2, Settings.QuantityRegistersPerPage);
            return PartialView(list);
        }
Ejemplo n.º 2
0
        public ActionResult Editar(int id)
        {
            var cat = new TipoPeleService().GetById(id);

            ViewBag.Parents = GetSkinTypeSelectListItem(new TipoPeleService().GetRecords(x => x.IdTipoPele != id).ToList(), id);
            ViewBag.Idiomas = new IdiomaService().GetAll();

            return View(cat);
        }