public IHttpActionResult GetPersonalInformations(int page = 1, int pageSize = 10, string sortBy = "id", string sortDirection = "asc") { try { _logger.Debug(string.Format("ini process - GetAll,idUser: {0}", CurrentIdUser)); List <FilterOption> filters = new List <FilterOption>(); List <string> selectColumnsList = new List <string> { "Id", "FirstName", "LastName", "SiteName", "Email", "Country", "PhoneNumber", "IdPhoto", "Description", "FaceBook", "Twitter", "GooglePlus" }; List <PersonalInformation> entities = _personalinformationBL.GetAll(filters, page, pageSize, sortBy, sortDirection, selectColumnsList); var pagedRecord = new PagedList { Content = entities.ToList(), TotalRecords = _personalinformationBL.CountGetAll(filters, page, pageSize), CurrentPage = page, PageSize = pageSize }; _logger.Debug(string.Format("finish GetAll , idUser: {0}", CurrentIdUser)); return(Ok(pagedRecord)); } catch (Exception ex) { LogError(ex); return(InternalServerError(ex)); } }