Пример #1
0
        public ActionResult AddRoom(Hotel_Info hotel)
        {
            if (ModelState.IsValid)
            {
                UserClass user = new UserClass();
                user.AddRoom(hotel);

                return(RedirectToAction("LogIn", "User"));
            }
            else
            {
                return(View(hotel));
            }
        }