// GET: API/Vendors
        public async Task <ActionResult> Index(string Token, string term = "")
        {
            VendorsLogic VendorBusiness = new VendorsLogic();
            var          data           = await VendorBusiness.GetVendor(term);

            return(Json(new
            {
                data = (await VendorBusiness.GetVendor(term)).Select(x => new
                {
                    Description = x.Description,
                    DocURL = x.DocURL,
                    ID = x.ID,
                    Name = x.Name,
                    //Package = x.UserPackageType.Name,
                    Status = x.Status,
                    Thumbnail = imageToUrlConvertionHandler(x.Thumbnail),
                    //Helpers.ImageToBase64(MvcCustom.APiImagePath(x.Thumbnail)),
                    TwitterURL = x.TwitterURL,
                    WebsiteURL = x.WebsiteURL,
                })
            }, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
 // GET: Vendor
 public async Task <ActionResult> Index()
 {
     return(View(await VendorLogic.GetVendor()));
 }