public IBOİnventoryTransactions BOİnventoryTransactions(IInventoryTransactionsRepository repo)
        {
            BOInventoryTransactions boİnventoryTransactions = (BOInventoryTransactions)BOİnventoryTransactions();

            boİnventoryTransactions.Repository = repo;
            return(boİnventoryTransactions);
        }
        public async Task <IHttpActionResult> DeleteİnventoryTransactions(string id)
        {
            var result = Task.Factory.StartNew(() =>
            {
                IUnitOfWork uow = new UnitOfWorkImp(new IRepositoryConnection[] { İnventoryTransactionsRepository });
                var bo          = new BOInventoryTransactions();
                bo.Repository   = İnventoryTransactionsRepository;
                bo.Init(id);

                uow.Delete(bo);

                string err;
                if (!uow.Commit(out err))
                {
                    var resp = new HttpResponseMessage(HttpStatusCode.BadRequest)
                    {
                        Content = new StringContent(err)
                    };
                    throw new HttpResponseException(resp);
                }
                return(true);
            });
            await result;

            if (!result.Result)
            {
                return(NotFound());
            }

            return(Ok(result.Result));
        }
        public IBOİnventoryTransactions BOİnventoryTransactions()
        {
            var boİnventoryTransactions = new BOInventoryTransactions()
            {
                İd = this.İd,
                TransactionType         = this.TransactionType,
                TransactionCreatedDate  = this.TransactionCreatedDate,
                TransactionModifiedDate = this.TransactionModifiedDate,
                Productİd       = this.Productİd,
                Quantity        = this.Quantity,
                PurchaseOrderİd = this.PurchaseOrderİd,
                CustomerOrderİd = this.CustomerOrderİd,
                Comments        = this.Comments
            };

            return(boİnventoryTransactions);
        }