Example #1
0
        public async void Add()
        {
            customerParams    = new string[10];
            customerParams[0] = Fullname;
            customerParams[1] = Email;
            customerParams[2] = Phone;
            customerParams[3] = Country;
            customerParams[4] = City;
            customerParams[5] = Street;


            bool succesAddedCustomer = await _customerDataService.Add(customerParams);

            if (succesAddedCustomer == true)
            {
                Errors = "Customer has been added";
            }
            else
            {
                Errors = "Something went wrong.Check if you have entered everything right";
            }
        }
        public bool AddCustomer(CustomerModel customerModel)
        {
            CustomerDataService oDataService = new CustomerDataService();

            return(oDataService.Add(customerModel));
        }