//Delete Item [Post Request] public JsonResult Delete(int id) { status = itemBll.Delete(id); if (status) { return(Json(1)); } return(Json(0)); }
public ActionResult Delete(List <int> id) { if (string.IsNullOrEmpty(id.ToString())) { TempData["Error"] = "Data has already been deleted by other user!"; return(RedirectToAction("Index")); } List <string> lstMsg = new List <string>(); int returnCode = _itemBLL.Delete(id, out lstMsg); if (((int)Common.ReturnCode.Succeed == returnCode)) { return(Json(new { Message = true }, JsonRequestBehavior.AllowGet)); } else { return(Json(new { Message = false }, JsonRequestBehavior.AllowGet)); } }
public string Delete(string itemId) { return(itemBLL.Delete(int.Parse(itemId))); }