public async Task <Teacher> AddTeacherAsync(Teacher teacher)
        {
            _context.Add(teacher);
            await _context.SaveChangesAsync();

            return(teacher);
        }
Beispiel #2
0
 public virtual TEntity Add(TEntity entity)
 {
     return(context.Add(entity).Entity);
 }