// GET: Sponsors
        public ActionResult Index()
        {
            IEnumerable <Sponsors> allSponsors = sponsorService.GetAllSponsors();

            return(View(allSponsors));
        }
Exemplo n.º 2
0
 public ActionResult GetAllSponsors(BaseRecordFilterRequest request)
 {
     _mainResponse = _SponsorService.GetAllSponsors(request);
     _jsonString   = Mapper.Convert <SponsorListResponse>(_mainResponse);
     return(new OkObjectResult(_jsonString));
 }