Esempio n. 1
0
        public async Task <ActionResult> AddAsync(HostDto dto)
        {
            await _hostService.AddAsync(dto);

            AddResourceIdHeader(dto.Id);
            return(CreatedAtAction(nameof(Get), new { id = dto.Id }, null));
        }