public async Task <Teacher> AddTeacherAsync(Teacher teacher) { _context.Add(teacher); await _context.SaveChangesAsync(); return(teacher); }
public virtual TEntity Add(TEntity entity) { return(context.Add(entity).Entity); }
public async Task <Teacher> AddTeacherAsync(Teacher teacher) { _context.Add(teacher); await _context.SaveChangesAsync(); return(teacher); }
public virtual TEntity Add(TEntity entity) { return(context.Add(entity).Entity); }