public ActionResult DeleteConfirmed(int id)
        {
            BloodInventoryManager bloodInventoryManager = db.BloodInventoryManagers.Find(id);

            db.BloodInventoryManagers.Remove(bloodInventoryManager);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ManagerId,Name,Address,ContactNo,Email,BloodSampleId")] BloodInventoryManager bloodInventoryManager)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bloodInventoryManager).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.BloodSampleId = new SelectList(db.BloodSamples, "BloodSampleId", "BloodSampleId", bloodInventoryManager.BloodSampleId);
     return(View(bloodInventoryManager));
 }
        // GET: BloodInventoryManagers/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            BloodInventoryManager bloodInventoryManager = db.BloodInventoryManagers.Find(id);

            if (bloodInventoryManager == null)
            {
                return(HttpNotFound());
            }
            return(View(bloodInventoryManager));
        }
        // GET: BloodInventoryManagers/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            BloodInventoryManager bloodInventoryManager = db.BloodInventoryManagers.Find(id);

            if (bloodInventoryManager == null)
            {
                return(HttpNotFound());
            }
            ViewBag.BloodSampleId = new SelectList(db.BloodSamples, "BloodSampleId", "BloodSampleId", bloodInventoryManager.BloodSampleId);
            return(View(bloodInventoryManager));
        }