Exemple #1
0
        /// <summary>
        /// Adds the Inputs from customerview to database
        /// </summary>
        public async void Update()
        {
            bool EditCustomer = await _customerDataService.Update(SelectedCustomer);

            if (EditCustomer == true)
            {
                Errors = "Customer has been edited";
            }
            else
            {
                Errors = "Something went wrong." +
                         "Contact the supervisor";
            }
        }
        public bool UpdateCustomerDetails(CustomerModel customerModel)
        {
            CustomerDataService oDataService = new CustomerDataService();

            return(oDataService.Update(customerModel));
        }