public async Task <IActionResult> InboxShowById()
        {
            string machineryServiceId      = HttpContext.Request.Query["machineryServiceId"].ToString();
            InboxShowByIdResponse response = _iAdminReportService.InboxShowById(machineryServiceId);

            return(Ok(response));
        }
Exemplo n.º 2
0
        public InboxShowByIdResponse InboxShowById(string machineryServiceId)
        {
            InboxShowByIdResponse response = new InboxShowByIdResponse();

            var serviceData = _dbContext.vSSHMachineHistory.Where(b => b.MachineryServiceId == Convert.ToInt32(machineryServiceId)).ToList();

            response.ServiceData = serviceData;
            response.isSuccess   = true;

            return(response);
        }