public async Task Handle(CreatePhotoModel model)
        {
            throw new NotImplementedException();


            await _context.SaveChangesAsync();
        }
Ejemplo n.º 2
0
        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();
        }