예제 #1
0
 public void AgregarUsuarioAdmin(String StrPrimerNombre, String StrSegundoNombre, String StrPrimerApellido,
                                 String StrSegundoApellido, String StrContraseña, String StrConfContraseña, String StrValorMecanismo,
                                 short ShTipoMecanismo, String StrPartyID, short ShGeoID,
                                 String StrLineaDireccion1, String StrLineaDireccion2, String StrLineaDireccion3,
                                 String StrInstrucciones, Byte ByteTipoDireccionID)
 {
     if (du.BusquedaUsuarioId(StrPartyID).Any())
     {
         throw new ExcepcionExisteID();
     }
     else if (!StrContraseña.Equals(StrConfContraseña))
     {
         throw new ExcepcionNoCoincide();
     }
     else
     {
         du.AgregarUsuarioAdmin(StrPrimerNombre, StrSegundoNombre, StrPrimerApellido, StrSegundoApellido,
                                StrContraseña, StrValorMecanismo, ShTipoMecanismo, StrPartyID, ShGeoID, StrLineaDireccion1,
                                StrLineaDireccion2, StrLineaDireccion3, StrInstrucciones, ByteTipoDireccionID);
     }
 }