public ActionResult PushMessage(OrderSharedPushMessageConfig model, int pageIndex = 1, int pageSize = 20)
        {
            int    count  = 0;
            string strSql = string.Empty;
            var    lists  = ShareOrderConfigManager.GetOrderSharedPushMessageConfig(model, pageSize, pageIndex, out count);

            var list  = new OutData <List <OrderSharedPushMessageConfig>, int>(lists, count);
            var pager = new PagerModel(pageIndex, pageSize)
            {
                TotalItem = count
            };

            return(View(new ListModel <OrderSharedPushMessageConfig>(list.ReturnValue, pager)));
        }
 public ActionResult EditMessage(int id = 0)
 {
     if (id == 0)
     {
         OrderSharedPushMessageConfig model = new OrderSharedPushMessageConfig();
         model.IOSModel     = new IOSModel();
         model.AndriodModel = new AndriodModel();
         return(View(model));
     }
     else
     {
         OrderSharedPushMessageConfig model = ShareOrderConfigManager.GetOrderSharedPushMessageConfig(id);
         model.AndriodModel = JsonConvert.DeserializeObject <AndriodModel>(model.AndroidCommunicationValue);
         model.IOSModel     = JsonConvert.DeserializeObject <IOSModel>(model.IOSCommunicationValue);
         return(View(model));
     }
 }
 public ActionResult GetOrderSharedPushMessageConfig()
 {
     return(Json(ShareOrderConfigManager.GetOrderSharedPushMessageConfig(), JsonRequestBehavior.AllowGet));
 }