public object PostUpdteAutoPrint(ShopBranch info) { ShopApplication.SetAutoPrint(CurrentUser.ShopId, info.IsAutoPrint); string userkey = WebHelper.GetFormString("userkey"); var currentInfo = PrintHub.ConnectedUsers.FirstOrDefault(p => p.UserKey == userkey); if (currentInfo != null) currentInfo.IsAutoPrint = info.IsAutoPrint; return new { success = true }; }