public ActionResult DeleteConfirmed(long id) { //BloodType bloodtype = PersonnelContext.BloodTypes.Find(id); //PersonnelContext.BloodTypes.Remove(bloodtype); //PersonnelContext.SaveChanges(); _bloodTypeService.DeleteById((int)id); _uow.SaveChanges(); return(RedirectToAction("Index")); }