예제 #1
0
        public IHttpActionResult Get(int id, int?unionId = null)
        {
            SeasonsRepo seasonsRepo = new SeasonsRepo();
            int?        seasonId    = unionId != null?seasonsRepo.GetLastSeasonByCurrentUnionId(unionId.Value) :
                                          (int?)null;

            var clubInfo = ClubService.GetClub(id, seasonId);

            return(Ok(clubInfo));
        }
예제 #2
0
 public async Task <ClubViewModel> GetClub(int id)
 {
     return(mapper.Map <ClubViewModel>(await clubService.GetClub(id)));
 }
 // GET: api/Login
 public Club getClub(int Club)
 {
     return(cClub.GetClub(Club));
 }