예제 #1
0
 public ActionResult savePass(Models.Pass model)
 {
     db.Entry(model).State = System.Data.Entity.EntityState.Added;
     db.SaveChanges();
     return(RedirectToAction("Contact"));
     //return View();
 }
예제 #2
0
        public ActionResult ApplyTempPass(Models.Pass model)
        {
            Hashtable map   = new Hashtable(10);
            string    error = "";

            Console.WriteLine("User Name" + model.userName);
            if (string.IsNullOrEmpty(model.userName))
            {
                error = "userName error";
                map.Add("error", error);
            }
            ViewBag.Message = "Your application description page.";


            return(Json(map));
        }