public ActionResult Index(reserva ha)
        {
            ha.estado = 1;

            ha.codigo_cliente = (int)Session["idcli"];
            ob.reserva.InsertOnSubmit(ha);
            return View();
        }
 partial void Deletereserva(reserva instance);
 partial void Updatereserva(reserva instance);
 partial void Insertreserva(reserva instance);
		private void detach_reserva(reserva entity)
		{
			this.SendPropertyChanging();
			entity.cliente = null;
		}
		private void attach_reserva(reserva entity)
		{
			this.SendPropertyChanging();
			entity.cliente = this;
		}