Beispiel #1
0
    public ActionResult <Responses.Consumer> CreateConsumer([Required] CreateConsumerRequest request)
    {
        var consumer = _service.CreateConsumer(request, User.Identity?.Name);

        return(CreatedAtAction(nameof(GetConsumer), new { consumerId = consumer.Id }, consumer));
    }