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)); }
public IEnumerable <PartnerDTO> GetList(int storeId) { var partners = _repo.GetList(storeId).Translate <Partner, PartnerDTO>(); return(partners); }