public List <AbonentModel> FindByPhoneAndID(int ID, string Phone) { AbonentRepository _repo = new AbonentRepository(); List <AbonentModel> theAbonents = _repo.Abonents(ID, null, Phone); return(theAbonents); }
public AbonentModel FindOne(int ID) { AbonentRepository _repo = new AbonentRepository(); List <AbonentModel> theAbonents = _repo.Abonents(ID); this.ID = theAbonents[0].ID; this.Name = theAbonents[0].Name; this.Phone = theAbonents[0].Phone; this.Description = theAbonents[0].Description; this.Branche = theAbonents[0].Branche; this.UserName = theAbonents[0].UserName; this.BranchID = theAbonents[0].BranchID; this.Email = theAbonents[0].Email; return(this); }
public List <AbonentModel> Abonents() { AbonentRepository _repo = new AbonentRepository(); return(_repo.Abonents()); }
public List <AbonentModel> FindByGroupID(int GroupID) { AbonentRepository _repo = new AbonentRepository(); return(_repo.Abonents(null, null, null, GroupID)); }
public List <AbonentModel> Abonents() { AbonentRepository _repo = new AbonentRepository(); return(_repo.Abonents(null, null, null, this.ID)); }