public IActionResult UpdateLastEventTime(UpdateLastEventTimeModel model) { var validationData = _service.ValidateUpdateLastEventTime( User, model); if (!validationData.IsValid) { return(BadRequest(AppResult.FailValidation(data: validationData))); } State.Instance.LastEventTime = model.UtcTime; _service.SaveCurrentState(Constants.Paths.STATE_PATH); return(NoContent()); }
public ValidationData ValidateUpdateLastEventTime( ClaimsPrincipal principal, UpdateLastEventTimeModel model) { return(new ValidationData()); }