public ActionResult ReservationByRoomNumber(int id)
        {
            ReservationByRoomNumberViewModel reservationByRoomNumber =
                new ReservationByRoomNumberViewModel {
                RoomNumber = id, BirthDate = DateTime.Now, StartDate = DateTime.Now, EndDate = DateTime.Now
            };

            return(View(reservationByRoomNumber));
        }
        public async Task <ActionResult> ReservationByRoomNumber(ReservationByRoomNumberViewModel reservationByRoomNumber)
        {
            var user = new ApplicationUser {
                UserName = reservationByRoomNumber.Email, Email = reservationByRoomNumber.Email, FirstName = reservationByRoomNumber.FirstName, LastName = reservationByRoomNumber.LastName, BirthDate = reservationByRoomNumber.BirthDate, NationalId = reservationByRoomNumber.NationalId
            };
            ApplicationUserManager userManager = HttpContext.GetOwinContext().GetUserManager <ApplicationUserManager>();
            var result = await userManager.CreateAsync(user, reservationByRoomNumber.Password);

            await userManager.AddToRoleAsync(user.Id, "Customer");

            Customer customer = new Customer {
                CustomerID = user.Id
            };

            db.Customers.Add(customer);
            await db.SaveChangesAsync();

            Reservation res = new Reservation()
            {
                CustomerID = user.Id,
                StartDate  = reservationByRoomNumber.StartDate,
                EndDate    = reservationByRoomNumber.EndDate,
                EmployeeID = System.Web.HttpContext.Current.User.Identity.GetUserId()
            };

            db.Reservations.Add(res);
            await db.SaveChangesAsync();

            ReservationRooms addedRoom = new ReservationRooms()
            {
                ReservationID = res.ReservationID, RoomNumber = reservationByRoomNumber.RoomNumber
            };

            db.ReservationRooms.Add(addedRoom);
            await db.SaveChangesAsync();

            return(RedirectToAction("RoomsMap", "Employees"));
        }