Exemplo n.º 1
0
        public void GETYBBYID(JObject context, Msg_Result msg, string P1, string P2, JH_Auth_UserB.UserInfo UserInfo)
        {
            int       ID    = Int32.Parse(P1);
            BI_DB_YBP model = new BI_DB_YBPB().GetEntities(d => d.ID == ID).FirstOrDefault();

            msg.Result = model;
        }
Exemplo n.º 2
0
        public void UPYBDATA(JObject context, Msg_Result msg, string P1, string P2, JH_Auth_UserB.UserInfo UserInfo)
        {
            string strFormName = context.Request("FormName") ?? "";
            string strFB       = context.Request("ISFB") ?? "N";



            int       ID    = Int32.Parse(P1);
            BI_DB_YBP model = new BI_DB_YBPB().GetEntities(d => d.ID == ID).FirstOrDefault();

            model.YBContent = P2;
            if (strFormName != "")
            {
                model.Name = strFormName;
            }
            if (strFB == "Y")
            {
                model.YBOption = P2;
            }
            new BI_DB_YBPB().Update(model);
            msg.Result = model;
        }