Beispiel #1
0
        public async Task <IActionResult> AddConsumer(DTOConsumer consumer)
        {
            bool success = await _service.AddConsumer(consumer);

            if (success)
            {
                return(Ok());
            }
            else
            {
                return(BadRequest());
            }
        }