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 ActionResult CompanyProfileDetails(int id) { ChemAnalystContext db = new ChemAnalystContext(); CompanyDataStore obj = new CompanyDataStore(); CustCompanyVM model = new CustCompanyVM(); var data = obj.GetCompanyByid(id); model.Name = data.Name; model.Description = data.Description; model.Logo = data.Logo; model.EmailId = data.EmailId; model.Address = data.Address; model.phoneNo = data.phoneNo; model.fax = data.fax; model.website = data.website; model.RegDate = data.RegDate.Date.ToString("dd/MM/yyyy"); model.CreatedTime = data.RegDate.Date.Year.ToString(); model.NOE = data.NOE; model.CEO = data.CEO; model.CIN = data.CIN; model.Category = data.Category; model.id = data.id; model.Meta = data.Meta; model.MetaDescription = data.MetaDescription; model.lstFinacialData = db.CompanyProfRecordNew.Where(w => w.SA_CompanyId == data.id).Select(x => new CompanyFinacialData { //FinacialYear = db.FinancialYears.Where(f => f.Id == x.FinancialYearId).FirstOrDefault().FinYear, FinacialYear = x.year, Growth = x.Growth, Revenue = x.Revenue, PBT = x.PBT, Liablities = x.Liablities, Margin = x.Margin, Margin1 = x.Margin1, Pat = x.Pat }).ToList(); ViewBag.S = obj.GetSWOTByCompany(id); return(View(model)); }