예제 #1
0
        public async Task<int> AddScFormAsync(ScForm scForm)
        {
            var rstScForm = await scFormRepository.Insert(scForm);

            if (rstScForm == null)
            {
                return -1;
            }
            return await SaveDbContextAsync();
        }
예제 #2
0
        public async Task ModifyScFormAsync(ScForm scForm)
        {
            await Task.Run(() => scFormRepository.Update(scForm));


            await SaveDbContextAsync();
        }