Ejemplo n.º 1
0
        public ActionResult Edit(FptzdModel model)
        {
            var res = HandleResult(() =>
            {
                model.id_masteruser = id_user_master;
                model.id_create     = id_user;
                model.id_shop       = id_shop;
                return(BusinessFactory.Td_Ps_Fptzd_1.Update(model));
            });

            return(JsonString(res, 1));
        }
Ejemplo n.º 2
0
        public ActionResult Add(FptzdModel 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_Fptzd_1.Add(model);
                return(br);
            });

            return(JsonString(res, 1));
        }