public IHttpActionResult GetById(int perkId) { PerkService perkService = CreatePerkService(); var perk = perkService.GetPerkById(perkId); perk.GameURL = "https://" + HttpContext.Current.Request.Url.Authority + "/api/Game?GameId=" + perk.GameId; return(Ok(perk)); }