Пример #1
0
        public async Task <IActionResult> Save([FromBody] Person person)
        {
            person.Timestamp = DateTime.UtcNow;
            await _personGateway.Save(person);

            _publisherModified.Publish(new PersonModifiedMessage(person.Id));

            return(Ok());
        }
 public Task Save(Person person) =>
 ExecuteAction(() => _decoratee.Save(person), "mongo_person_save");