Пример #1
0
 public IEnumerable <Award> GetAll()
 {
     return(_awardRepository.GetAll());
 }
Пример #2
0
        public JsonResult Index()
        {
            var apiResult = TryExecute(() => _awardRepository.GetAll(), "Awards Fetched sucessfully");

            return(Json(apiResult, JsonRequestBehavior.AllowGet));
        }
Пример #3
0
        public ActionResult Index()
        {
            var awards = _awardRepository.GetAll();

            return(View(awards));
        }
Пример #4
0
        public IEnumerable <Award> GetAwards()
        {
            var awards = awardRepository.GetAll();

            return(awards);
        }
Пример #5
0
 public IActionResult Index()
 {
     return(View(repository.GetAll()));
 }
Пример #6
0
 public List <Award> GetAll()
 {
     return(_repository.GetAll());
 }