public ActionResult CompanyProfile() { ViewBag.Product = Obj.GetCompanyProducts(); ViewBag.Category = Obj.GetUniqueCategory(); ViewBag.Fyear = Obj.GetUniqueFyear(); ViewBag.Cat = ""; ViewBag.Prod = ""; ViewBag.RevS = ""; ViewBag.EmpSiz = ""; ViewBag.CName = ""; ViewBag.Fy = DateTime.Now.Year; NewsDataStore n = new NewsDataStore(); ViewBag.f = n.GetFirstProduct(); return(View(Obj.GetCompanyList().OrderBy(x => x.Name))); }
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"); }