public async Task <IActionResult> Edit(long id, [Bind("FirstName,LastName,Email,Address,Phone,Service,Date,Enabled,Id")] ScheduleForm scheduleForm)
        {
            if (id != scheduleForm.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(scheduleForm);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!ScheduleFormExists(scheduleForm.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(scheduleForm));
        }