예제 #1
0
 public DataResult <bool> EnableTwoFactorAuth(int userId, string provider = null)
 {
     try
     {
         m_userUoW.EnableTwoFactorAuth(userId, provider);
         return(Success(true));
     }
     catch (DatabaseException e)
     {
         m_logger.LogWarning(e);
         return(Error <bool>(e.Message));
     }
 }