Beispiel #1
0
        public async Task <BasePagingDto <FieldDto> > GetFieldByStoreId(int storeId, int currentPage, int pageSize)
        {
            var listStore = await _fieldRepository.GetByStoreId(storeId);

            var listFieldDto = _mapper.Map <List <FieldDto> >(listStore);

            var result = MakePaging.FieldDtotoToPaging(listFieldDto, currentPage, pageSize);

            return(result);
        }