public void ChangeCustomerProductCalDetailsValue(CustomerProductSingleViewModel model) { CustomerProduct cp = new CustomerProduct(); cp.CustomerProductID = model.CustomerProductID; cp.CustomerID = model.CustomerID; cp.ProductID = model.ProductID; cp.CalculationDetails = model.CalculationDetails; customerProductRepository.Update(cp); }