Beispiel #1
0
        public async Task <IActionResult> AddOfferForClient([FromBody] OfferDto offer, [FromRoute] Guid clientId)
        {
            var result = await _repository.AddOfferWithItems(_mapper.Map <Offer>(offer), clientId);

            return(CreatedAtAction(nameof(Get), new { id = result.Id }, MapEntity(result)));
        }