public async Task <IActionResult> Edit(int id, [Bind("Id,Name,Sepicaligation,Email,Phone")] Doctor_Detail doctor_Detail)
        {
            if (id != doctor_Detail.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(doctor_Detail);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!Doctor_DetailExists(doctor_Detail.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(doctor_Detail));
        }
        public async Task <IActionResult> Create([Bind("Id,Name,Sepicaligation,Email,Phone")] Doctor_Detail doctor_Detail)
        {
            if (ModelState.IsValid)
            {
                _context.Add(doctor_Detail);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(doctor_Detail));
        }