public bool UpdateAffiliate(Affiliate affiliate) { string[] attributes = { "name:string", "last_name:string", "identification:string", "status:bool" }; bool isOk = UpdateEntity(affiliate, "id", affiliate.GetAttribute("id").ToString(), attributes); Close(); return(isOk); }