public JsonResult Delete(int id) { if (_service.CheckDelete(id) == 1) { return(Json(new { result = Constants.UnDelete })); } var f*g = _service.Delete(id); return(Json(f*g == 0 ? new { result = true } : new { result = false })); }