public ActionResult lienhePOST(FormCollection form) { ICB.Business.Access.SystemConfigProvider systemConfigProvider = new SystemConfigProvider(); ViewData["INFO"] = systemConfigProvider.Get(); string name = form["Name"]; string tel = form["Tel"]; string email = form["Email"]; string caption = form["Caption"]; string message = form["Message"]; ICB.Business.Access.FeedbackProvider feedbackProvider = new FeedbackProvider(); Feedback feedback = new Feedback { CreateTime = DateTime.Now, Content = message, Answered = false, Email = email, Name = name, PhoneNumber = tel, Theme = caption, Status = 0, UserID = null }; var result = feedbackProvider.Insert(feedback); if (result == NDK.ApplicationCore.Extensions.ResponseResults.AccessEntityStatusCode.OK) { ViewBag.Status = true; } else { ViewBag.Status = false; } return(View("lienhe")); }
public ActionResult Index() { SystemConfigProvider systemConfigProvider = new SystemConfigProvider(); ViewData["BANNER"] = systemConfigProvider.GetBanner(); var hoso = systemConfigProvider.GetHOSONANGLUC(); ViewBag.HOSONANGLUC = hoso == null ? "" : hoso.Name; ViewBag.Caption = hoso == null ? "" : hoso.Caption; ViewBag.Description = hoso == null ? "" : hoso.Description; return(View(systemConfigProvider.Get())); }
public ActionResult lienhe() { ICB.Business.Access.SystemConfigProvider systemConfigProvider = new SystemConfigProvider(); ViewData["INFO"] = systemConfigProvider.Get(); return(View(systemConfigProvider.Get())); }