public IHttpActionResult Get(int id, int year)
        {
            var stat = _service.QueryStat(id, year);

            return(stat == null ? (IHttpActionResult)BadRequest("ID Not Found!") : Ok(stat));
        }
示例#2
0
 public CollegeStat Get(int id, int year)
 {
     return(_service.QueryStat(id, year));
 }