Beispiel #1
0
        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);
        }
Beispiel #2
0
        public async Task Create(CreateUpdateClassDto input)
        {
            var book = new Class(GuidGenerator.Create(), input.Name);

            await _classRepository.InsertAsync(book);
        }