public async Task <IActionResult> Update([FromBody] NationalityDTO nationality) { var outputHandler = await _service.Update(nationality); if (outputHandler.IsErrorOccured) { return(BadRequest(outputHandler.Message)); } return(Ok(outputHandler.Message)); }
public async Task <ResponseModel> Update([FromBody] NationalityModel model) { var response = await _nationalityService.Update(model); return(response); }