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());
            }
        }
Exemplo n.º 4
0
 public CustomerDetailControl()
 {
     this.InitializeComponent();
     ControlModel = new CustomerControlModel();
     this.RegisterPropertyChangedCallback(MasterMenuItemProperty, OnMasterMenuItemPropertyChanged);
 }
Exemplo n.º 5
0
        public ActionResult CustomerControl(CustomerControlModel model)
        {
            ViewBag.Subtitle = "Customer ControlPanel";

            return(View());
        }