Пример #1
0
        public IActionResult Insert([FromBody] CustomersDTO customer)
        {
            if (customer == null)
            {
                return(BadRequest());
            }

            var response = _customerApplication.Insertar(customer);

            if (response.IsSuccess)
            {
                return(Ok(response.Data));
            }

            return(BadRequest(response.Message));
        }