Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public async Task <ResponseModel> Update([FromBody] NationalityModel model)
        {
            var response = await _nationalityService.Update(model);

            return(response);
        }