public void UpdateEducationShoppingCartTempByShippingPaymentID(int _educationShoppingTempID, int _shippingPaymentID, string PType) { if (PType.ToLower().Contains("online")) { Data.Model.EducationShoppingTemp _educationShoppingTemp = new DLModel.EducationShoppingTemp(); _educationShoppingTemp = _educationShoppingTempRepository.GetById(_educationShoppingTempID); _educationShoppingTemp.ShippingPaymentID = _shippingPaymentID; _educationShoppingTemp.ProcessedDate = DateTime.Now; _educationShoppingTempRepository.Update(_educationShoppingTemp); } else { Data.Model.ProductShoppingTemp _productShoppingTemp = new DLModel.ProductShoppingTemp(); _productShoppingTemp = _productShoppingTempRepository.getProductShoppingTempByID(_educationShoppingTempID); _productShoppingTemp.ShippingPaymentID = _shippingPaymentID; _productShoppingTemp.IsProcessed = true; _productShoppingTemp.ProcessedDate = DateTime.Now; _productShoppingTempRepository.Update(_productShoppingTemp); } }
public DLModel.EducationShoppingTemp GetEducationShoppingTempByID(int _id) { return(_educationShoppingTempRepository.GetById(_id)); }