public async Task <ActionResult <Sponsor> > GetSponsorById(string sponsorId) { if (string.IsNullOrEmpty(sponsorId)) { return(NotFound()); } try { var sponsor = await sponsorService.GetSponsorByIdAsync(sponsorId); if (sponsor == null) { return(NotFound()); } else { return(Ok(sponsor)); } } catch (Exception e) { return(await HandleControllerException(e)); } }