Пример #1
0
        public Result Update(Model.DB.Account model)
        {
            model.created_by = user_id;
            ApiResultEnum result = AccountDA.Update(model);

            if (result == ApiResultEnum.Success && MonitorRA.GetStatusTrade() != 0)
            {
                OpenCloseBiz.LoadAccount(model, false);
            }
            return(Result(result));
        }
Пример #2
0
        public Result <int> Add(Model.DB.Account model)
        {
            int id = 0;

            model.created_by = user_id;
            ApiResultEnum result = AccountDA.Add(model, ref id);

            if (result == ApiResultEnum.Success && MonitorRA.GetStatusTrade() != 0)
            {
                model.id = id;
                OpenCloseBiz.LoadAccount(model);
            }
            return(Result(result, id));
        }