예제 #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);
        }
예제 #2
0
        public void Update()
        {
            BrancheRepository _repo = new BrancheRepository();

            _repo.Update(this);
        }
예제 #3
0
        public void Create()
        {
            BrancheRepository _repo = new BrancheRepository();

            _repo.Create(this);
        }
예제 #4
0
        public List <BrancheModel> UserBranches(int UserId)
        {
            BrancheRepository _repo = new BrancheRepository();

            return(_repo.BranchesUser(UserId));
        }
예제 #5
0
        public List <BrancheModel> FindAll()
        {
            BrancheRepository _repo = new BrancheRepository();

            return(_repo.FindAll());
        }