Example #1
0
        // GET: Admin/tblstudents/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tblstudents tblstudents = db.tblstudents.Find(id);

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