コード例 #1
0
        public ApiResponse <List <T> > GetAll(ApiRequest <string> apiRequest, out int totalRows)
        {
            ParameterCollection paramIn = new ParameterCollection();

            paramIn.AddPagingInfo(apiRequest.Paging);
            paramIn.Add("@SearchText", apiRequest.Body);
            ApiResponse <List <T> > response = new ApiResponse <List <T> >()
            {
                Status = StatusCode.Success,
                Data   = DataAccess.GetDataTable(preStoreName + "GetAll", paramIn, out totalRows).To <T>()
            };

            return(response);
        }