예제 #1
0
        public async Task <TData <string> > SaveForm(SysIssueConfigEntity entity)
        {
            TData <string> obj = new TData <string>();
            await sysIssueConfigService.SaveForm(entity);

            obj.Data = entity.Id.ParseToString();
            obj.Tag  = 1;
            return(obj);
        }
예제 #2
0
        public async Task SaveForm(SysIssueConfigEntity entity)
        {
            if (entity.Id.IsNullOrZero())
            {
                await entity.Create();

                await this.BaseRepository().Insert(entity);
            }
            else
            {
                await entity.Modify();

                await this.BaseRepository().Update(entity);
            }
        }
예제 #3
0
        public async Task <ActionResult> SaveFormJson(SysIssueConfigEntity entity)
        {
            TData <string> obj = await sysIssueConfigBLL.SaveForm(entity);

            return(Json(obj));
        }