public async Task Handle(CreatePhotoModel model) { throw new NotImplementedException(); await _context.SaveChangesAsync(); }
public async Task Handle(CreatePersonModel model) { var person = new Person(model.FirstName) { LastName = model.LastName, DateOfBirth = model.DateOfBirth }; _context.People.Add(person); await _context.SaveChangesAsync(); }