public Entity.BaseResponse <Entity.DeviceSceduledMaintenanceResponse> GetDeviceScheduledMaintenence(DeviceMaintenanceRequest request) { Entity.BaseResponse <Entity.DeviceSceduledMaintenanceResponse> response = new Entity.BaseResponse <Entity.DeviceSceduledMaintenanceResponse>(true); try { if (request.DeviceGuid.HasValue || request.EntityGuid.HasValue) { response = _maintenanceService.GetDeviceScheduledMaintenance(request); } else { response.Message = "DeviceGuid or EntityGuid is missing!"; response.IsSuccess = false; } } catch (Exception ex) { return(new Entity.BaseResponse <Entity.DeviceSceduledMaintenanceResponse>(false, ex.Message)); } return(response); }
public Entity.BaseResponse <List <Entity.DeviceMaintenanceResponse> > UpcomingList(DeviceMaintenanceRequest request) { Entity.BaseResponse <List <Entity.DeviceMaintenanceResponse> > response = new Entity.BaseResponse <List <Entity.DeviceMaintenanceResponse> >(true); try { response.Data = _maintenanceService.GetUpComingList(request); } catch (Exception ex) { return(new Entity.BaseResponse <List <Entity.DeviceMaintenanceResponse> >(false, ex.Message)); } return(response); }