public IEnumerable <Award> GetAll() { return(_awardRepository.GetAll()); }
public JsonResult Index() { var apiResult = TryExecute(() => _awardRepository.GetAll(), "Awards Fetched sucessfully"); return(Json(apiResult, JsonRequestBehavior.AllowGet)); }
public ActionResult Index() { var awards = _awardRepository.GetAll(); return(View(awards)); }
public IEnumerable <Award> GetAwards() { var awards = awardRepository.GetAll(); return(awards); }
public IActionResult Index() { return(View(repository.GetAll())); }
public List <Award> GetAll() { return(_repository.GetAll()); }