public async Task ModifyScFormAsync(ScForm scForm) { await Task.Run(() => scFormRepository.Update(scForm)); await SaveDbContextAsync(); }
public async Task <int> AddScFormAsync(ScForm scForm) { var rstScForm = await scFormRepository.Insert(scForm); if (rstScForm == null) { return(-1); } return(await SaveDbContextAsync()); }