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)); }
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)); }