public async Task <IActionResult> Post([FromBody] CreateSize command) { command.Id = Guid.NewGuid(); await _sizeService.AddSizeAsync(_mapper.Map <SizeDTO>(command)); return(Created($"/events/{command.Id}", null)); }
public async Task <IActionResult> Post([FromBody] CreateSize command) { command.Id = Guid.NewGuid(); await _sizeService.AddSizeAsync(_mapper.Map <SizeDTO>(command)); return(Created($"/events/{command.Id}", null)); }