public async Task <IPaginate <Contact> > GetAllAsync(string sort, string search, int pageNumber) { var user = await _userManager.FindByNameAsync(UserName); var entities = await _uow.GetRepositoryAsync <Contact>() .GetListAsync(predicate: GetFilter(search, user.Id), include: Includes(), orderBy: ListExtensions.GetOrderBy <Contact>(sort, "FirstName"), index: pageNumber, size: 10); var cols = new string[] { "UpdatedAt" }; entities.Items.UtcToLocalDates <Contact>(cols); return(entities); }