public async Task <IActionResult> Post(GeneratorRequest model) { model.IpAddress = HttpContext.Connection.RemoteIpAddress.ToString(); GeneratorResponse response = await _itemBusiness.GenerateAsync(model); if (response.IsSuccess) { return(Ok(new Uri(Request.Scheme + "://" + Request.Host.Value + Request.PathBase + "/" + response.Segment).ToString())); } return(BadRequest(response.Message)); }