Пример #1
0
        public async Task <IActionResult> Search(string key = "")
        {
            var accounts = await _itemGroupRepo.Search(key).ToListAsync();

            var viewModels = AutoMapper.Mapper.Map <IEnumerable <SearchViewModel> >(accounts);

            return(Ok(viewModels));
        }
 public List <ItemGroupModel> Search(int pageIndex, int pageSize, out long total, string item_group_name)
 {
     return(_res.Search(pageIndex, pageSize, out total, item_group_name));
 }