public PagedResultDto <ThongTinSuaChuaDTO> GetThongTinSuaChuas(ThongTinSuaChuaFilter input)
        {
            var query = thongTinSuaChuaRepository.GetAll().Where(x => !x.IsDelete);

            // filter by value
            if (input.soXe != null)
            {
                query = query.Where(x => x.soXe.ToLower().Equals(input.soXe));
            }

            var totalCount = query.Count();

            // sorting
            if (!string.IsNullOrWhiteSpace(input.Sorting))
            {
                query = query.OrderBy(input.Sorting);
            }

            // paging
            var items = query.PageBy(input).ToList();

            // result
            return(new PagedResultDto <ThongTinSuaChuaDTO>(
                       totalCount,
                       items.Select(item => ObjectMapper.Map <ThongTinSuaChuaDTO>(item)).ToList()));
        }
 public PagedResultDto <ThongTinSuaChuaDTO> GetThongTinSuaChuasByFilter(ThongTinSuaChuaFilter thongTinSuaChuaFilter)
 {
     return(thongTinSuaChuaAppService.GetThongTinSuaChuas(thongTinSuaChuaFilter));
 }