public ActionResult DeleteConfirmed(int id)
        {
            tblOricResearchProjectsHead tblOricResearchProjectsHead = db.tblOricResearchProjectsHeads.Find(id);

            db.tblOricResearchProjectsHeads.Remove(tblOricResearchProjectsHead);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "id,projectHeadName")] tblOricResearchProjectsHead tblOricResearchProjectsHead)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tblOricResearchProjectsHead).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tblOricResearchProjectsHead));
 }
        public ActionResult Create([Bind(Include = "id,projectHeadName")] tblOricResearchProjectsHead tblOricResearchProjectsHead)
        {
            if (ModelState.IsValid)
            {
                db.tblOricResearchProjectsHeads.Add(tblOricResearchProjectsHead);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(tblOricResearchProjectsHead));
        }
        // GET: OricResearchProjectsHead/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tblOricResearchProjectsHead tblOricResearchProjectsHead = db.tblOricResearchProjectsHeads.Find(id);

            if (tblOricResearchProjectsHead == null)
            {
                return(HttpNotFound());
            }
            return(View(tblOricResearchProjectsHead));
        }