public ActionResult DeleteConfirmed(int id) { CERTIFICATE_REQUEST cERTIFICATE_REQUEST = db.CERTIFICATE_REQUEST.Find(id); db.CERTIFICATE_REQUEST.Remove(cERTIFICATE_REQUEST); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,employee_id,LETTER_TYPE,MENTION_SALARY,BL_bank_nane,BL_account_no,EL_name,EL_purpose,EL_DOV_from,EL_DOV_to,TD_NCARREG,TD_CARREGREN,TD_DLA,TDLREN,other,Etisalat,ADWEA,Mawaqif,Immigration")] CERTIFICATE_REQUEST cERTIFICATE_REQUEST) { if (ModelState.IsValid) { db.Entry(cERTIFICATE_REQUEST).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.employee_id = new SelectList(db.master_file, "employee_id", "employee_name", cERTIFICATE_REQUEST.employee_id); return(View(cERTIFICATE_REQUEST)); }
// GET: CERTIFICATE_REQUEST/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CERTIFICATE_REQUEST cERTIFICATE_REQUEST = db.CERTIFICATE_REQUEST.Find(id); if (cERTIFICATE_REQUEST == null) { return(HttpNotFound()); } return(View(cERTIFICATE_REQUEST)); }
// GET: CERTIFICATE_REQUEST/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CERTIFICATE_REQUEST cERTIFICATE_REQUEST = db.CERTIFICATE_REQUEST.Find(id); if (cERTIFICATE_REQUEST == null) { return(HttpNotFound()); } ViewBag.employee_id = new SelectList(db.master_file, "employee_id", "employee_name", cERTIFICATE_REQUEST.employee_id); return(View(cERTIFICATE_REQUEST)); }