public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            CustomerRates = await _context.CustomerRates.FirstOrDefaultAsync(m => m.CustomerId == id);

            if (CustomerRates == null)
            {
                return(NotFound());
            }
            return(Page());
        }
        public async Task <PartialViewResult> OnPostCustomersUpdate(Models.Customers customer)
        {
            if (ModelState.IsValid)
            {
                switch (customer.Action)
                {
                case "Create":
                    customer.FTPUserName = customer.CustomerCode;
                    customer.FTPPassword = GenerateRandomPassword();

                    //TODO: Create Twilio Subaccount
                    //TODO: Get SendGridAPIKey and populate, generate e-mail address

                    _context.Customers.Add(customer);
                    await _context.SaveChangesAsync();

                    Models.MasterRates   masterrate = _context.MasterRates.FirstOrDefault(mr => mr.IsMember == customer.IsMember);
                    Models.CustomerRates rate       = new Models.CustomerRates
                    {
                        CustomerId = customer.CustomerId,
                        EmailRate  = masterrate.EmailRate,
                        TextRate   = masterrate.TextRate,
                        VoiceRate  = masterrate.VoiceRate
                    };
                    _context.CustomerRates.Add(rate);


                    break;

                case "Edit":
                    //Not used here
                    break;

                case "Delete":
                    _context.Customers.Remove(customer);
                    //TODO: Close Twilio Subaccount
                    //TODO: Cancel Twilio Phone
                    break;
                }
                await _context.SaveChangesAsync();
            }

            return(GetCustomersModal(customer));
        }