Ejemplo n.º 1
0
        public List <AbonentModel> FindByPhoneAndID(int ID, string Phone)
        {
            AbonentRepository   _repo       = new AbonentRepository();
            List <AbonentModel> theAbonents = _repo.Abonents(ID, null, Phone);

            return(theAbonents);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public void Update()
        {
            AbonentRepository _repo = new AbonentRepository();

            _repo.Update(this);
        }
Ejemplo n.º 4
0
        public List <AbonentModel> Abonents()
        {
            AbonentRepository _repo = new AbonentRepository();

            return(_repo.Abonents());
        }
Ejemplo n.º 5
0
        public List <AbonentModel> FindByGroupID(int GroupID)
        {
            AbonentRepository _repo = new AbonentRepository();

            return(_repo.Abonents(null, null, null, GroupID));
        }
Ejemplo n.º 6
0
        public void Delete()
        {
            AbonentRepository _repo = new AbonentRepository();

            _repo.Delete(this);
        }
Ejemplo n.º 7
0
        public void Create()
        {
            AbonentRepository _repo = new AbonentRepository();

            _repo.Create(this);
        }
Ejemplo n.º 8
0
        public List <AbonentModel> Abonents()
        {
            AbonentRepository _repo = new AbonentRepository();

            return(_repo.Abonents(null, null, null, this.ID));
        }