public void Set() { try { //goi store Reset_Target _targetServices.ResetTarget(); } catch (Exception) { } }
public JsonResult ResetTaget() { try { //goi store Reset_Target _targetServices.ResetTarget(); return(Json("OK", JsonRequestBehavior.AllowGet)); } catch (Exception) { return(Json("NOT OK", JsonRequestBehavior.AllowGet)); } }