public RockIdEvent Save(RockIdEvent rockIdEvent) { var savedEvent = _eventLoggerContext.Add(rockIdEvent); _eventLoggerContext.SaveChanges(); return(savedEvent.Entity); }
public JsonResult Post([FromBody] RockIdEvent rockIdEvent) { rockIdEvent.EventStoredDateTimeUTC = DateTime.UtcNow; rockIdEvent = _eventLoggerRepository.Save(rockIdEvent); return(new JsonResult(rockIdEvent)); }