public ActionResult UpdateCate(WorkingDefineCate modal) { try { _wrkhSrv.UpdateCate(modal); return(Json(new { returnData = true, jsData = _wrkhSrv.GetAllCate() })); } catch (Exception) { return(Json(new { returnData = false })); } }
public ActionResult SaveCate(WorkingDefineCate data) { var tempDate = _wrkhSrv.SaveCate(data); return(Json(new { returnData = tempDate, jsData = _wrkhSrv.GetAllCate() })); }