public async Task <ListAttendances> CreateNewListAttendancesAsync(string ListName) { var newListAttendances = new ListAttendances { Id = Guid.NewGuid(), Name = ListName }; await teachersAccountRepository.Create(newListAttendances); return(newListAttendances); }
public async Task Delete(ListAttendances listA) { context.ListAttendances.Remove(listA); context.SaveChanges(); }
public async Task Create(ListAttendances listAttendances) { context.ListAttendances.Add(listAttendances); context.SaveChanges(); }