Package controller

Source Code of controller.ControllerVisita

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/

package controller;

import dao.DaoVisita;
import java.util.Date;
import java.util.List;
import model.Visita;

/**
*
* @author GuillermoLuis
*/
public class ControllerVisita {
   
    public void agregarVisita(String nombre,Date fecha,String motivo,String estado,String numero){
        DaoVisita dao = new DaoVisita();
        dao.agregarVisita(nombre, fecha, motivo, estado, numero);
    }
  
    public List<Visita> ListaVisitas(){
        DaoVisita dao = new DaoVisita();
        return dao.getListaDeVisitas();
    }
   
}
TOP

Related Classes of controller.ControllerVisita

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.