public IHttpActionResult GetAward(int id) { Award award = _dALAward.GetAwardById(id); if (award == null) { return(NotFound()); } return(Ok(award)); }
private List <string> AllAwardsForFestival() { if (Festival != null && !NotAwarded) { int festivalId = _dALFestival.AllFestivals().ElementAt(SelectedFestival).Id; _allAwards = new List <string>(); var awardFestival = _dALAward.GetAwardForFestival(festivalId); awardFestival.ForEach(a => { var awardForFestival = _dALAward.GetAwardById(a.Award_Id); _allAwards.Add(awardForFestival.Name); }); } return(_allAwards); }