public async Task <ActionResult> Create([FromBody] ItemDTO itemDTO) { Guid id = await _itemService.CreateAsync(itemDTO); if (id == Guid.Empty) { return(StatusCode(303)); } return(Created( new Uri( string.Concat(Request.Path.ToString().Remove(Request.Path.ToString().Length - 6, 6), $"GetById/{id}"), UriKind.Relative), id)); }