Пример #1
0
        public ActionResult Index(string name, string orderField, string orderDirection, int pageSize = 30, int pageIndex = 1)
        {
            ViewBag.Name = name;
            var list = PartnerRepository
                       .GetList(name, orderField, orderDirection, pageIndex, pageSize);

            return(View(list));
        }
Пример #2
0
        public IEnumerable <PartnerDTO> GetList(int storeId)
        {
            var partners = _repo.GetList(storeId).Translate <Partner, PartnerDTO>();

            return(partners);
        }