public IActionResult Get(int id) { EventRegistration existingReg = _eventRegRepo.Get(id); if (existingReg == null) { return(NotFound()); } return(new JsonResult(existingReg)); }
public IActionResult Get(int id) { Club club = _clubRepo.Get(id); if (club == null) { return(NotFound()); } return(new JsonResult(club)); }
public IActionResult Get(int id) { Athlete athlete = _athleteRepo.Get(id); if (athlete == null) { return(NotFound()); } return(new JsonResult(athlete)); }
public IActionResult Get(int id) { User user = _userRepo.Get(id); if (user == null) { return(NotFound()); } return(new JsonResult(user)); }
public IActionResult Get(int id) { Club_Athlete member = _clubMemberRepo.Get(id); if (member == null) { return(NotFound()); } return(new JsonResult(member)); }
public IActionResult Get(int id) { Event evnt = _eventRepo.Get(id); if (evnt == null) { return(NotFound()); } return(new JsonResult(evnt)); }