Пример #1
0
        public RockIdEvent Save(RockIdEvent rockIdEvent)
        {
            var savedEvent = _eventLoggerContext.Add(rockIdEvent);

            _eventLoggerContext.SaveChanges();
            return(savedEvent.Entity);
        }
Пример #2
0
 public JsonResult Post([FromBody] RockIdEvent rockIdEvent)
 {
     rockIdEvent.EventStoredDateTimeUTC = DateTime.UtcNow;
     rockIdEvent = _eventLoggerRepository.Save(rockIdEvent);
     return(new JsonResult(rockIdEvent));
 }