예제 #1
0
        public string UpdateDate(Historico historico)
        {
            var rules = new HistoricoRules();

            rules.UpdateData(historico.Id, historico.ProximoContato);

            return this.Success(new { });
        }
예제 #2
0
        public string Add(Historico historico)
        {
            var rules = new HistoricoRules();

            if (!rules.Adicionar(historico))
            {
                return this.Error(rules.MessageError);
            }

            return this.Success(historico);
        }
예제 #3
0
        public string All(int condominioId)
        {
            var rules = new HistoricoRules();

            return this.Success(rules.All(condominioId));
        }