public DataResult <TwoFactorLoginModel> GetTwoFactorTokenForUser(int userId, string provider) { try { var entity = m_userUoW.GetTwoFactorTokenForUser(userId, provider); var result = m_mapper.Map <TwoFactorLoginModel>(entity); return(Success(result)); } catch (DatabaseException e) { m_logger.LogWarning(e); return(Error <TwoFactorLoginModel>(e.Message)); } }