public ActionResult RegistrarPer(ClientePersona ca, Reserva ra, Habitacion hh)
        {
            conectorDataContext db = new conectorDataContext();
            int b = db.Usuario.OrderByDescending(a => a.Id).First().Id;
            ca.IdUsuario = b;
            db.ClientePersona.InsertOnSubmit(ca);
            db.SubmitChanges();

            ra.IdUsuario = b;

            int d = db.Habitacion.OrderByDescending(a => a.Id).First().Id;
            ra.IdHabitacion = d;
            ra.CantDias = ra.Salida.Day - ra.LLegada.Day;
            ra.Fecha = DateTime.Now;
            db.Reserva.InsertOnSubmit(ra);
            db.SubmitChanges();

            if (hh.Id == ra.IdHabitacion && hh.Estado=="Libre")
            {
                hh.Estado = "Ocupado";
                db.Habitacion.InsertOnSubmit(hh);
                db.SubmitChanges();
            }
            return View();
        }
 partial void DeleteClientePersona(ClientePersona instance);
		private void detach_ClientePersona(ClientePersona entity)
		{
			this.SendPropertyChanging();
			entity.Usuario = null;
		}
 partial void UpdateClientePersona(ClientePersona instance);
 partial void InsertClientePersona(ClientePersona instance);