// GET: API/Exhibitor public async Task <ActionResult> Index(string Token, string term = "") { Exhibitors exhibitorBusiness = new Exhibitors(); var data = await exhibitorBusiness.GetExhibitors(term); return(Json(new { data = (await exhibitorBusiness.GetExhibitors(term)).Select(x => new { Description = x.Description, DocURL = x.DocURL, ID = x.ID, Name = x.Name, // iconimage = Helpers.ImageToBase64(MvcCustom.APiImagePath(x.UserPackageType.iconimage)), Status = x.Status, Thumbnail = imageToUrlConvertionHandler(x.Thumbnail), //Helpers.ImageToBase64(MvcCustom.APiImagePath(x.Thumbnail)), TwitterURL = x.TwitterURL, WebsiteURL = x.WebsiteURL }) }, JsonRequestBehavior.AllowGet)); }
// GET: Exhibitors public async Task <ActionResult> Index() { return(View(await exhibitorLogic.GetExhibitors())); }