public async Task Update(CreateUpdateClassDto input, Guid id) { var classs = _classRepository .Where(p => p.Id == id).FirstOrDefault(); classs.Name = input.Name; await _classRepository.UpdateAsync(classs); }
public async Task Create(CreateUpdateClassDto input) { var book = new Class(GuidGenerator.Create(), input.Name); await _classRepository.InsertAsync(book); }