public ActionResult Create(MedicalType medicaltype)
        {
            if (ModelState.IsValid)
            {
                medicaltype.id = Guid.NewGuid();
                db.MedicalTypes.Add(medicaltype);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(medicaltype);
        }
 public ActionResult Edit(MedicalType medicaltype)
 {
     if (ModelState.IsValid)
     {
         db.Entry(medicaltype).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(medicaltype);
 }