// Put: MaintenanceServiceController/Update public IActionResult Update([FromForm] UpdateMaintenanceServiceDto dTO) { _MaintenanceServiceService.Update(dTO); return(Ok(GetRespons())); }
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)));