private void timScheduledTask_Elapsed(object sender, ElapsedEventArgs e) { TaskWork taskwork = new TaskWork(); taskwork.CreteDataTryHis(); taskwork.CreteData(); }
public JsonResult WorkSchedule() { TaskWork taskwork = new TaskWork(); taskwork.CreteData(); //ViewBag.Message = "Work Schedule!!"; string strMsg = "Work Schedule!!"; //return View(); return(Json(new { Response = strMsg }, JsonRequestBehavior.AllowGet)); }
private void CreateDataByApi() { TaskWork taskWork = new TaskWork(); taskWork.CreteData(); }