示例#1
0
        public Outcome GetOutcomeByID(int id, string lang = "en")
        {
            Outcome outcome = databasePlaceholder.Get(id, lang);

            if (outcome == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }
            return(outcome);
        }
示例#2
0
 public IEnumerable <Outcome> GetAll()
 {
     return(repository.Get());
 }