//_____________________________________________ public void SetStatus(Status status) { try { this.Status = (Status)SecureValidationsAluno.ValidationStatus(Convert.ToInt16(status)); } catch (FormatException ex) { throw new FormatException(nameof(ex.Message)); } catch (InvalidCastException ex) { throw new InvalidCastException(nameof(ex.Message)); } catch (OverflowException ex) { throw new OverflowException(nameof(ex.Message)); } catch (Exception ex) { throw new Exception(nameof(ex.Message)); } }
//_____________________________________________ public void SetEndereco(Endereco endereco) { try { this.Endereco = (Endereco)SecureValidationsAluno.ValidationsEndereco(Convert.ToInt16(endereco.Logradouro), endereco.Numero, endereco.Complemento, endereco.CEP, Convert.ToInt16(endereco.Zona)); } catch (FormatException ex) { throw new FormatException(nameof(ex.Message)); } catch (InvalidCastException ex) { throw new InvalidCastException(nameof(ex.Message)); } catch (OverflowException ex) { throw new OverflowException(nameof(ex.Message)); } catch (Exception ex) { throw new Exception(nameof(ex.Message)); } }
//_____________________________________________ public void SetTipoUsuario(TipoUsuario TipoUsuario) { try { this.TipoUsuario = (TipoUsuario)SecureValidationsAluno.ValidationsTipoUsuario(Convert.ToInt16(TipoUsuario)); } catch (FormatException ex) { throw new FormatException(nameof(ex.Message)); } catch (InvalidCastException ex) { throw new InvalidCastException(nameof(ex.Message)); } catch (OverflowException ex) { throw new OverflowException(nameof(ex.Message)); } catch (Exception ex) { throw new Exception(nameof(ex.Message)); } }
//_________________________________________ private void SetCodigoUsuario(string CodigoUsuario) { this.CodigoAluno = SecureValidationsAluno.ValidationsCodigoUsuario(CodigoUsuario); }
private void SetIdAluno(string IdAluno) { this.IdAluno = SecureValidationsAluno.ValidationsIdAluno(IdAluno); }
//_____________________________________________ public void SetNome(string Nome) { this.Nome = SecureValidationsAluno.ValidationsNome(Nome); }
//_____________________________________________ public void SetNovoCodigoUsuario(string CodigoUsuario) { this.CodigoUsuario = SecureValidationsAluno.ValidationsNovoCodigoUsuario(CodigoUsuario); }
//_____________________________________________ public void SetTelefone(Telefone telefone) { this.Telefone = (Telefone)SecureValidationsAluno.ValidationsTelefone(telefone.DDD, telefone.Numero); }
//_____________________________________________ public void SetEmail(string Email) { this.Email = SecureValidationsAluno.ValidationsEmail(Email); }
//_____________________________________________ public void SetSobrenome(string Sobrenome) { this.Sobrenome = SecureValidationsAluno.ValidationSobrenome(Sobrenome); }