Пример #1
0
        //public void AddServiceContract(ServiceContract entity)
        //{
        //    var cu = _contractUnitRepsoitory.GetById(entity.CustomerAccountId);
        //    cu.AddContract(entity);
        //    _contractUnitRepsoitory.Update(cu);
        //}

        public void AddContractUnit(PurchaseAccount entity)
        {
            _contractUnitRepsoitory.Add(entity);
            //entity.Stock = _stockService.GetStock(entity.StockId);
            throw new NotImplementedException("SetStockAppropriateLifeCycle not called");
            //entity.SetStockAppropriateLifeCycle();
            // _stockService.SetCustomerAccountId(entity.CustomerAccountId,entity.StockId);
            // _stockService.UpdateStock(entity.Stock);
        }
 public void SavePost(CustomerAccount savePost)
 {
     //saving into the database
     _customer.Add(savePost);
     _customer.Save(savePost);
 }
Пример #3
0
 public void AddTempAccount(CustomerAccount customerAccount)
 {
     customerAccount.IsTemp = true;
     _customerAccountRepository.Add(customerAccount);
 }