Пример #1
0
        public SharesEntity Add(SharesEntity shares)
        {
            SharesTableRepository sharesTableRepository = new SharesTableRepository(dbContext);

            sharesTableRepository.Add(shares);
            return(shares);
        }
Пример #2
0
        public SharesEntity Put(SharesEntity shares)
        {
            SharesTableRepository sharesTableRepository = new SharesTableRepository(dbContext);

            return(sharesTableRepository.Put(shares));
        }
Пример #3
0
        public SharesEntity Delete(int id)
        {
            SharesTableRepository sharesTableRepository = new SharesTableRepository(dbContext);

            return(sharesTableRepository.Delete(id));
        }
Пример #4
0
        public IEnumerable <SharesEntity> Get()
        {
            SharesTableRepository sharesTableRepository = new SharesTableRepository(dbContext);

            return(sharesTableRepository.Get());
        }