Exemplo n.º 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);
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 3
0
        public async Task <ActionResult> SaveFormJson(SysIssueConfigEntity entity)
        {
            TData <string> obj = await sysIssueConfigBLL.SaveForm(entity);

            return(Json(obj));
        }