public ActionResult CompanyProfile(string category, string products, string revsize, string empsize) { CompanyDataStore Obj = new CompanyDataStore(); NewsDataStore n = new NewsDataStore(); ViewBag.f = n.GetFirstProduct(); ViewBag.Cat = category; ViewBag.Prod = products; ViewBag.RevS = revsize; ViewBag.EmpSiz = empsize; ViewBag.Product = Obj.GetCompanyProducts(); ViewBag.Category = Obj.GetUniqueCategory(); return(View("CustCompanies", Obj.GetCompanyList(category, products, revsize, empsize, DateTime.Now.Year.ToString()).OrderBy(x => x.CreatedTime))); }
public ActionResult CustCompaniesList() { CompanyDataStore Obj = new CompanyDataStore(); ViewBag.Product = Obj.GetCompanyProducts(); ViewBag.Category = Obj.GetUniqueCategory(); ViewBag.Cat = ""; ViewBag.Prod = ""; ViewBag.RevS = ""; ViewBag.EmpSiz = ""; NewsDataStore n = new NewsDataStore(); ViewBag.f = n.GetFirstProduct(); return(View("CustCompanies", Obj.GetCompanyList().OrderBy(x => x.CreatedTime))); // return View("CustCompanies"); }
public JsonResult CompanyList() { List <SA_Company> NewsList = Obj.GetCompanyList(); return(Json(new { data = NewsList }, JsonRequestBehavior.AllowGet)); }