// Put: MaintenanceServiceController/Update

        public IActionResult Update([FromForm] UpdateMaintenanceServiceDto dTO)
        {
            _MaintenanceServiceService.Update(dTO);
            return(Ok(GetRespons()));
        }
示例#2
0
 public async Task <IActionResult> Update([FromBody] MaintenanceServiceUpdateDto dto, int id)
 => await GetResponse(async (userId) =>
                      new ApiResponseViewModel(true, "MaintenanceService Updated Successfully", await _service.Update(dto, id, userId)));