Example #1
0
        public ActionResult Edit(PsrkModel model)
        {
            var res = HandleResult(() =>
            {
                model.id_masteruser = id_user_master;
                model.id_create     = id_user;
                //model.id_shop = id_shop;
                return(BusinessFactory.Td_Ps_Rk_1.Update(model));
            });

            return(JsonString(res, 1));
        }
Example #2
0
        public ActionResult Add(PsrkModel model)
        {
            var res = HandleResult(() =>
            {
                model.id_masteruser = id_user_master;
                model.id_create     = id_user;
                //model.id_shop = id_shop;
                model.AutoAudit = AutoAudit();
                var br          = BusinessFactory.Td_Ps_Rk_1.Add(model);
                return(br);
            });

            return(JsonString(res, 1));
        }