public IActionResult Patient(Settingspatient settingspatient)
        {
            Settingspatient pat_info = new Settingspatient();

            pat_info.pat_id   = Request.Form["pat_id"];
            pat_info.name     = Request.Form["name"];
            pat_info.sex      = Request.Form["sex"];
            pat_info.hos_name = Request.Form["hos_name"];
            pat_info.password = Request.Form["password"];
            return(RedirectToAction("Index"));
        }
        public IActionResult Delete(Settingspatient settingspatient)
        {
            string person_id = Request.Form["person_id"];
            string kind      = Request.Form["kind"];

            if (kind == "doctor")
            {
                Sql.Execute("DELETE from doctor where ID = @0", person_id);
            }
            else if (kind == "patient")
            {
                Sql.Execute("DELETE from patient where ID = @0", person_id);
            }
            else if (kind == "manager")
            {
                Sql.Execute("DELETE from manager where ID = @0", person_id);
            }
            else if (kind == "people")
            {
                Sql.Execute("DELETE from people where ID = @0", person_id);
            }
            return(RedirectToAction("Index"));
        }