public string Update(Condominio condominio) { var rules = new CondominioRules(); if (!rules.Update(condominio)) { return this.Error(rules.MessageError); } return this.Success(condominio); }
public string Add(Condominio condominio) { var rules = new CondominioRules(); if (rules.Adicionar(condominio) == null) { return this.Error(rules.MessageError); } return this.Success(condominio); }
public string Get(int Id) { var rules = new CondominioRules(); var condominio = rules.Get(Id); if (condominio == null) { return this.Error(rules.MessageError); } return this.Success(condominio); }
public string Imprimir(string ids) { var rules = new CondominioRules(); return this.Success(rules.Imprimir(ids)); }
public string All(CondominioSearch param) { var rules = new CondominioRules(); return this.Success(rules.Search(param)); }