Пример #1
0
        public GetInboxListResponse GetInboxList(SearchRequest searchRequest)
        {
            GetInboxListResponse response = new GetInboxListResponse();

            var ReadFlagsNothing      = context.TblSshMachineryServicesRepository.Get().Where(q => q.IsApproved == false && q.IsRejected == false);
            var ReadFlagsNothingCount = ReadFlagsNothing.Count();

            if (searchRequest.search == null)
            {
                searchRequest.search = "";
            }
            var inboxList = _dbContext.vSSHMachineHistory.Where(q => q.IsApproved == false && q.IsRejected == false && q.SerialNo.Contains(searchRequest.search)).ToList();


            response.ReadFlagsNothingCount = ReadFlagsNothingCount;
            response.inboxList             = inboxList;
            response.isSuccess             = true;
            return(response);
        }
        public async Task <IActionResult> GetInboxList(SearchRequest searchRequest)
        {
            GetInboxListResponse response = _iAdminHomeService.GetInboxList(searchRequest);

            return(Ok(response));
        }