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