public async Task <ActionResult> Create([FromBody] AddressDTO addressDTO) { Guid id = await _addressService.CreateAsync(addressDTO); 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)); }