public List <SPGetDocumentType_Result> Filter(DocumentTypeQuery query, out int count)
        {
            count = 0;
            int pageNumber = query.PageNumber != 0 ? query.PageNumber : 1;
            var keyword    = string.IsNullOrEmpty(query.Keyword) != true ? query.Keyword : "";
            var start      = 0;
            var limit      = query.PageSize;

            start = (pageNumber - 1) * limit;
            int totalRow = 0;
            List <SPGetDocumentType_Result> result = new List <SPGetDocumentType_Result>();
            ObjectParameter prTotalRow             = new ObjectParameter("total", totalRow);

            result = _entities.SPGetDocumentType(Util.DetecVowel(keyword), start, limit, prTotalRow).ToList();
            count  = (prTotalRow.Value == null) ? 0 : Convert.ToInt32(prTotalRow.Value);
            return(result);
        }
 public BaseListResponse <SPGetDocumentType_Result> Search([FromUri] DocumentTypeQuery query)
 {
     return(documentService.FilterDocumentType(query));
 }