public static void CreateCustomer(CustomerInputViewModel customerInputViewModel) { var customer = new Customer(); customer.Name = customerInputViewModel.Name; TransactionManager.UnitOfWork().AddEntity(customer); }
public static void CreateCustomer(CustomerInputViewModel customerInputViewModel) { TransactionManager.Execute(System.Reflection.MethodBase.GetCurrentMethod().Name, () => { CustomerRepository.CreateCustomer(customerInputViewModel); return(null); }); }