public SharesEntity Add(SharesEntity shares) { SharesTableRepository sharesTableRepository = new SharesTableRepository(dbContext); sharesTableRepository.Add(shares); return(shares); }
public SharesEntity Put(SharesEntity shares) { SharesTableRepository sharesTableRepository = new SharesTableRepository(dbContext); return(sharesTableRepository.Put(shares)); }
public SharesEntity Delete(int id) { SharesTableRepository sharesTableRepository = new SharesTableRepository(dbContext); return(sharesTableRepository.Delete(id)); }
public IEnumerable <SharesEntity> Get() { SharesTableRepository sharesTableRepository = new SharesTableRepository(dbContext); return(sharesTableRepository.Get()); }