public void RecordResetFailure(Guid _userGuid) { ResetFailureDAO dao = new ResetFailureDAO(MongoDB); ResetFailure failure = new ResetFailure { Guid = Guid.NewGuid(), ParentGuid = _userGuid, FailureTicks = DateTime.UtcNow.Ticks }; dao.Persist(failure); }
public int GetResetFailureCount(Guid _userGuid, DateTime _since) { ResetFailureDAO dao = new ResetFailureDAO(MongoDB); return(dao.GetCountSince(_userGuid, _since.Ticks)); }