コード例 #1
0
 internal static SecretariaVM ToView(TBSecretaria secretaria)
 {
     return new SecretariaVM
     {
         SecretariaID = secretaria.SecretariaID,
         NomeSecretaria = secretaria.nmSecretaria,
         NomeSecretario = secretaria.nmSecretario,
         Email = secretaria.Email,
         Telefone1 = secretaria.Telefone1,
         Telefone2 = secretaria.Telefone2,
         SiteSecretaria = secretaria.Site,
         Endereco = EnderecoVM.ToView(secretaria.TBEndereco)
     };
 }
コード例 #2
0
 public SecretariaBasicoVM(TBSecretaria x)
 {
     SecretariaID = x.SecretariaID;
     NomeSecretaria = x.nmSecretaria;
     NomeSecretario = x.nmSecretario;
 }