public void PostStockAccountTransaction([FromBody] StockAccountTransactionDto stockAccountTransactionDto)
        {
            StockAccountTransaction com = new StockAccountTransaction();

            com.Id             = stockAccountTransactionDto.Id;
            com.StockAccountId = stockAccountTransactionDto.StockAccountId;
            com.TransactionId  = stockAccountTransactionDto.TransactionId;
            stocky.StockAccountTransaction.Add(com);
            stocky.SaveChanges();
        }
        public void PutStockAccountTransaction(String id, [FromBody] StockAccountTransactionDto stockAccountTransactionDto)
        {
            //  stocky.Company.Update(id, com);
            StockAccountTransaction com = stocky.StockAccountTransaction.Where(e => e.Id == stockAccountTransactionDto.Id).Single <StockAccountTransaction>();

            com.Id                  = stockAccountTransactionDto.Id;
            com.StockAccountId      = stockAccountTransactionDto.StockAccountId;
            com.TransactionId       = stockAccountTransactionDto.TransactionId;
            stocky.Entry(com).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            stocky.SaveChanges();
        }
        public dynamic GetStockAccountTransaction(String id)
        {
            StockAccountTransaction com = stocky.StockAccountTransaction.Where(e => e.Id == id).FirstOrDefault();

            return(new StockAccountTransactionDto(com.Id, com.StockAccountId, com.TransactionId));
        }