public JsonResult Delete(int id) { try { _iFByod.Delete(id); return Json(true); } catch { return Json(false); } }
public JsonResult Delete(int id) { try { _iFByod.Delete(id); return(Json(true)); } catch (Exception ex) { return(Json(false)); } }
public ActionResult Delete(Byod byod) { try { _iFByod.Delete(byod); return(Json("")); } catch (Exception ex) { return(Json(ex)); } }