Ejemplo n.º 1
0
        public ActionResult signininfo(login log)
        {
            int i = obj.search(log);
              if (i == 1) { return RedirectToAction("post"); }

              return View("signin");
            //var q = from y in db.logins select y;
            //foreach (var x in q)
            //{
            //    if (x.username == log.username && x.password == log.password)
            //    {
            //        return RedirectToAction("post");

            //    }
            //}a
        }
Ejemplo n.º 2
0
 public ActionResult signupinfo(login u)
 {
     obj.save(u);
     return RedirectToAction("index");
 }