// GET: Home public ActionResult Index() { var Coninfo = cInfoService.GetCompanyInfo(); foreach (var item in Coninfo) { ViewBag.CName = item.CompanyName; ViewBag.Address = item.Address; ViewBag.Mobile = item.Mobile; ViewBag.Email = item.EmailAddress; ViewBag.LandLine = item.LandLine; } ViewBag.MainSlider = db.MainSliders.ToList(); return(View()); }
public ActionResult _Footer() { var companyInfo = companyInfoService.GetCompanyInfo(); foreach (var item in companyInfo) { ViewBag.ComName = item.CompanyName; ViewBag.ComAddress = item.Address; ViewBag.ComMobile = item.Mobile; ViewBag.ComEmail = item.EmailAddress; ViewBag.ComLandLine = item.LandLine; } return(PartialView()); }