Пример #1
0
 public tbl_users GetUserById(int userId)
 {
     try
     {
         return(userContext.GetUser(userId));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
 public User GetUserByEmail(string email)
 {
     try
     {
         return(userDataLayer.GetUser(email));
     }
     catch (Exception e)
     {
         ExceptionHandler.PrintException(e, new StackTrace(true));
         throw e;
     }
 }