//using System.Text; //using YLErp.Web.Hubs; namespace YLErp.Web.Controllers { //public class MessageAPIController : Controller //{ // //public JsonResult RealTimeNotify(string message) // //{ // // if (!PS.Config.ErpElement.ShowRealTimeServiceNotify) // // { // // return Json(new { result = "OK" }, JsonRequestBehavior.AllowGet); // // } // // var roles = PS.Config.ErpElement.RealTimeServiceNotifyRoles; // // if (roles.IsNullOrWhiteSpace()) // // { // // return Json(new { result = "OK" }, JsonRequestBehavior.AllowGet); // // } // // var hub = GlobalHost.ConnectionManager.GetHubContext(); // // hub.Clients.All.RealTimeNotify(message); // // return Json(new { result = "OK" }, JsonRequestBehavior.AllowGet); // //} // //public JsonResult UpdateSystemDate() // //{ // // LogFactory.GetLogger().Info("UpdateSystemDate"); // // valuedateBLL.ResetValueDate(); // // return Json("OK", JsonRequestBehavior.AllowGet); // //} //} }