public override void OnExecute(object sender, ExecutedRoutedEventArgs e) { CustomerModel customer = e.Parameter as CustomerModel; customer.Add(); _viewModel.Customers.Add(customer); }
public String Add() { String message = ""; if (Valid()) { message = _custmodel.Add(); } else { message = "Pengisian data kurang lengkap"; } return(message); }
public string AddCustomer(Customer customer) { var result = CustomerModel.Add(customer); return(JsonConvert.SerializeObject(result)); }