private bool DoUpdateCustomer(CustomerViewModel model) { var svc = new CustomerAppSvcGeneric(); var updated = svc.Update(model.GetEntity()); return(updated != null); }
private bool DoCreateCustomer(CustomerViewModel model) { var svc = new CustomerAppSvcGeneric(); var created = svc.Create(model.GetEntity()); return(created.Id > 0); }