예제 #1
0
 public bool Create()
 {
     try
     {
         Datos.Solicitante sol = new Datos.Solicitante()
         {
             codigoLibro   = this.CodigoLibro,
             rut           = this.Rut,
             nombre        = this.Nombre,
             apellido      = this.Apellido,
             tipo          = _tipo.ToString(),
             fechaPrestamo = FechaPr
         };
         Conexion.BiblioD.Solicitante.Add(sol);
         Conexion.BiblioD.SaveChanges();
         return(true);
     }
     catch
     {
         return(false);
     }
 }