コード例 #1
0
ファイル: BrancheModel.cs プロジェクト: GennadyMV/smscenter
        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
ファイル: BrancheModel.cs プロジェクト: GennadyMV/smscenter
        public void Update()
        {
            BrancheRepository _repo = new BrancheRepository();

            _repo.Update(this);
        }
コード例 #3
0
ファイル: BrancheModel.cs プロジェクト: GennadyMV/smscenter
        public void Create()
        {
            BrancheRepository _repo = new BrancheRepository();

            _repo.Create(this);
        }
コード例 #4
0
ファイル: BrancheModel.cs プロジェクト: GennadyMV/smscenter
        public List <BrancheModel> UserBranches(int UserId)
        {
            BrancheRepository _repo = new BrancheRepository();

            return(_repo.BranchesUser(UserId));
        }
コード例 #5
0
ファイル: BrancheModel.cs プロジェクト: GennadyMV/smscenter
        public List <BrancheModel> FindAll()
        {
            BrancheRepository _repo = new BrancheRepository();

            return(_repo.FindAll());
        }