예제 #1
0
        public async Task <Entry> Create <TFormObject>(TFormObject formObject, params string[] fields)
        {
            var entry = _helper.Add(_dbSet, formObject, fields);
            await _context.SaveChangesAsync();

            return(entry);
        }
예제 #2
0
        public async Task <AllowanceTask> Create <TFormObject>(TFormObject formObject, params string[] fields)
        {
            var task = _helper.Add(_dbSet, formObject, fields);
            await _context.SaveChangesAsync();

            return(task);
        }