//Init private void initConstructor(DBMAINContext poDB) { //DBContext this.db = poDB; //DS this.oDS = new UserDS(this.db); this.oDSRole = new RoleDS(); //CRUD this.oCRUD = new UserCRUD(this.db); //BL //MAP } //End initConstructor
//BL //MAP //Init private void initConstructor(DBMAINContext poDB) { //DBContext this.db = poDB; //VM this.oVM = new EmployeeuserVM(); //DS this.oDS = new EmployeeuserDS(this.db); this.oDSUnit = new UnitDS(this.db); this.oDSJobtitle = new JobtitleDS(this.db); this.oDSRole = new RoleDS(this.db); //CRUD this.oCRUD = new EmployeeuserCRUD(this.db); //BL //MAP } //End initConstructor
public List <Role> GetRoleById(int roleid) { return(RoleDS.GetRoleById(roleid)); }
public string InUpDeRole(Role role) { return(RoleDS.InsUpdDelRole(role)); }
public List <Role> GetAllRole() { return(RoleDS.GetAllRole()); }