Ejemplo n.º 1
0
        public void CadastrarCondominium()
        {
            CondominioSaveCommand salvarCommand = new CondominioSaveCommand()
            {
                CEP         = "590000",
                Cidade      = 1,
                Estado      = 2,
                Complemento = "ap 101",
                Nome        = "Meridien",
                Rua         = "Teste"
            };

            condominioService.Salvar(salvarCommand);
        }
Ejemplo n.º 2
0
        public IActionResult Salvar([FromBody] CondominioSaveCommand condominioSaveCommand)
        {
            condominioSaveCommand = _condominioSaveService.Salvar(condominioSaveCommand);

            return(Response(condominioSaveCommand, condominioSaveCommand.GetNotifications()));
        }