public async Task <IActionResult> Create([FromForm] AdCreationModel model) { var create = await _adService.CreateAdAsync(HttpContext.GetUserId(), model); var locationUri = _uriService.GetAdUri(create.Payload.Id.ToString()); return(Created(locationUri, _mapper.Map <AdDetailsModel>(create.Payload))); }