Exemplo n.º 1
0
        public async Task <IActionResult> Add([FromBody] IdentificationTypeDTO identificationType)
        {
            var outputHandler = await _service.Add(identificationType);

            if (outputHandler.IsErrorOccured)
            {
                return(BadRequest(outputHandler.Message));
            }

            return(Created("", outputHandler.Message));
        }