public async Task <ActionResult <List <Sponsor> > > GetSponsor(Guid sponsorId)
 {
     try{
         return(new OkObjectResult(await _sponsorService.GetSponsor(sponsorId)));
     }
     catch (System.Exception ex) {
         throw ex;
     }
 }
Exemplo n.º 2
0
        // GET: Sponsor
        public ActionResult Index()
        {
            var getAllSponsors = sponsor.GetSponsor();

            return(View(getAllSponsors));
        }