Ejemplo n.º 1
0
        public BrancheModel FindOne(int ID)
        {
            BrancheRepository _repo      = new BrancheRepository();
            BrancheModel      theBranche = _repo.FindAll(ID)[0];

            this.ID         = theBranche.ID;
            this.name_full  = theBranche.name_full;
            this.name_short = theBranche.name_short;

            return(this);
        }
Ejemplo n.º 2
0
        public void Update()
        {
            BrancheRepository _repo = new BrancheRepository();

            _repo.Update(this);
        }
Ejemplo n.º 3
0
        public void Create()
        {
            BrancheRepository _repo = new BrancheRepository();

            _repo.Create(this);
        }
Ejemplo n.º 4
0
        public List <BrancheModel> UserBranches(int UserId)
        {
            BrancheRepository _repo = new BrancheRepository();

            return(_repo.BranchesUser(UserId));
        }
Ejemplo n.º 5
0
        public List <BrancheModel> FindAll()
        {
            BrancheRepository _repo = new BrancheRepository();

            return(_repo.FindAll());
        }