public bool CreateAccount([FromBody] CustomerControlModel model) { if (AccountHelper.CreateAccount(model.CustomerID.Value, DateTime.UtcNow, model.AccountName, model.AccountType)) { return(true); } return(false); }
public bool CreateCustomer([FromBody] CustomerControlModel model) { if (AccountHelper.CreateCustomer(model.Firstname, model.Lastname)) { return(true); } return(false); }
public IHttpActionResult DeleteCustomer([FromBody] CustomerControlModel model) { var status = AccountHelper.DeleteCustomer(model.CustomerID.Value); if (status) { return(Ok()); } else { return(BadRequest()); } }
public CustomerDetailControl() { this.InitializeComponent(); ControlModel = new CustomerControlModel(); this.RegisterPropertyChangedCallback(MasterMenuItemProperty, OnMasterMenuItemPropertyChanged); }
public ActionResult CustomerControl(CustomerControlModel model) { ViewBag.Subtitle = "Customer ControlPanel"; return(View()); }