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); }
public void Update() { BrancheRepository _repo = new BrancheRepository(); _repo.Update(this); }
public void Create() { BrancheRepository _repo = new BrancheRepository(); _repo.Create(this); }
public List <BrancheModel> UserBranches(int UserId) { BrancheRepository _repo = new BrancheRepository(); return(_repo.BranchesUser(UserId)); }
public List <BrancheModel> FindAll() { BrancheRepository _repo = new BrancheRepository(); return(_repo.FindAll()); }