Exemplo n.º 1
0
        public SharesEntity Add(SharesEntity shares)
        {
            SharesTableRepository sharesTableRepository = new SharesTableRepository(dbContext);

            sharesTableRepository.Add(shares);
            return(shares);
        }
Exemplo n.º 2
0
        public SharesEntity Put(SharesEntity shares)
        {
            SharesTableRepository sharesTableRepository = new SharesTableRepository(dbContext);

            return(sharesTableRepository.Put(shares));
        }
Exemplo n.º 3
0
        public SharesEntity Delete(int id)
        {
            SharesTableRepository sharesTableRepository = new SharesTableRepository(dbContext);

            return(sharesTableRepository.Delete(id));
        }
Exemplo n.º 4
0
        public IEnumerable <SharesEntity> Get()
        {
            SharesTableRepository sharesTableRepository = new SharesTableRepository(dbContext);

            return(sharesTableRepository.Get());
        }