Exemple #1
0
        public async Task UpdateAsync(Group group)
        {
            _context.Entry(group).State = EntityState.Modified;
            await SaveAsync();

            //Group g = await GetByIdAsync(group.Id);
            //foreach (Student s in g.Students)
            //{
            //    await _hubContext.Clients.Group(s.Id.ToString()).SendAsync("GroupHasBeenUpdated");
            //}
        }
 public async Task UpdateAsync(Student student)
 {
     _context.Entry(student).State = EntityState.Modified;
     await SaveAsync();
 }
Exemple #3
0
 public async Task UpdateAsync(Notification entity)
 {
     _context.Entry(entity).State = EntityState.Modified;
     await SaveAsync();
 }
 public async Task UpdateAsync(Project entity)
 {
     _context.Entry(entity).State = EntityState.Modified;
     await SaveAsync();
 }