예제 #1
0
        public HttpResponseMessage Get()
        {
            IBattleOutcome battle = battleRepository.CurrentBattle();

            return(Request.CreateResponse(HttpStatusCode.OK, battle));
        }
예제 #2
0
 public ActionResult Index()
 {
     ViewBag.Title         = "Home";
     ViewBag.CurrentBattle = battleRepository.CurrentBattle();
     return(View());
 }
예제 #3
0
        public IBattleOutcome GetMostRecentBattle()
        {
            IBattleOutcome battle = battleRepository.CurrentBattle();

            return(battle);
        }