コード例 #1
0
 public IEnumerable <Award> GetAll()
 {
     return(_awardRepository.GetAll());
 }
コード例 #2
0
ファイル: AwardsController.cs プロジェクト: xprasoulas/grid
        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
ファイル: AwardService.cs プロジェクト: vlabor/CSharpPractice
        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());
 }