public IActionResult Update(MaintenanceHistory maintenanceHistory)
        {
            var result = _maintenanceHistoryService.Update(maintenanceHistory);

            if (result.Success)
            {
                return(Ok(result.Message));
            }

            return(BadRequest(result.Message));
        }
        public IActionResult Edit(MaintenanceHistoryDto maintenanceHistoryDto)
        {
            var response = new ResponseViewModel();

            response = _maintenanceHistoryService.Update(maintenanceHistoryDto);

            if (!response.IsSuccess)
            {
                return(BadRequest(response));
            }

            return(Ok(response));
        }