Ejemplo n.º 1
0
        public async Task <JsonResult> Search(string freeText = null, int page = 1, int limit = 10)
        {
            var bizCompany  = new CompanyRepository();
            var totalRecord = await bizCompany.CountAsync(freeText);

            var datas = await bizCompany.GetsAsync(freeText, page, limit);

            var result = DataPaging.Create(datas, totalRecord);

            return(ToJsonResponse(true, null, result));
        }