示例#1
0
        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"));
        }
示例#2
0
        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()));
        }
示例#3
0
 public ActionResult lienhe()
 {
     ICB.Business.Access.SystemConfigProvider systemConfigProvider = new SystemConfigProvider();
     ViewData["INFO"] = systemConfigProvider.Get();
     return(View(systemConfigProvider.Get()));
 }