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