public ActionResult Delete(int id) { var obj = PayslipAllowance.GetById(id); if (obj != null) { obj.Delete(); } return(new JsonResult() { Data = ResultModel.SuccessResult() }); }
public ActionResult Edit(int id, FormCollection collection) { try { // TODO: Add update logic here var model = PayslipAllowance.GetById(id); TryUpdateModel(model); model.SaveOrUpDate(); return(new JsonResult() { Data = model }); } catch { return(View()); } }
// GET: PayslipAllowance/Edit/5 public ActionResult Edit(int id) { return(PartialView(PayslipAllowance.GetById(id))); }
// GET: PayslipAllowance/Details/5 public ActionResult Details(int id) { return(View(PayslipAllowance.GetById(id))); }