Exemplo n.º 1
0
        public ActionResult Index(UserModel model)
        {
            ResturantEntities cbe = new ResturantEntities();
            var s = cbe.GetLoginInfo(model.UserName, model.Password);

            var item = s.FirstOrDefault();

            if (item == "Success")
            {
                return(RedirectToAction("Index", "Home"));
            }
            else if (item == "User Does not Exists")

            {
                ViewBag.NotValidUser = item;
            }
            else
            {
                ViewBag.Failedcount = item;
            }

            return(View("Index"));
        }
Exemplo n.º 2
0
 public HomeController()
 {
     _context = new ResturantEntities();
 }
Exemplo n.º 3
0
 public ServicesController()
 {
     _context = new ResturantEntities();
 }
Exemplo n.º 4
0
 public ProductsController()
 {
     _context = new ResturantEntities();
 }
Exemplo n.º 5
0
 public TeamController()
 {
     _context = new ResturantEntities();
 }