Esempio n. 1
0
        public IHttpActionResult GetAll()
        {
            PerkService perkService = CreatePerkService();
            var         perks       = perkService.GetPerks();

            foreach (PerkListItem h in perks)
            {
                h.GameURL = "https://" + HttpContext.Current.Request.Url.Authority + "/api/Game?GameId=" + h.GameId;
            }
            return(Ok(perks));
        }