public async Task <IActionResult> ShowDetail(int id)
        {
            var medical = await imedicalsResponsitory.GetById(id);

            ViewBag.hospitals = ihospitalsResponsitory.GetAll().OrderBy(p => p.HospitalName).ToList();
            ViewBag.companies = icompanyDetailsResponsitory.GetAll().OrderBy(p => p.CompanyName).ToList();
            return(View("detail", medical));
        }
        public async Task <IActionResult> Edit(Policies policy)
        {
            var oldPolicy = await imedicalsResponsitory.GetById(policy.Id);

            if (ModelState.IsValid)
            {
                await ipoliciesResponsitory.Update(policy.Id, policy);

                return(RedirectToAction("index", "policies"));
            }
            ViewBag.medicals = imedicalsResponsitory.GetAll().OrderBy(p => p.MedicalName).ToList();
            return(View("detail", policy));
        }