public tbl_users GetUserById(int userId) { try { return(userContext.GetUser(userId)); } catch (Exception ex) { throw ex; } }
public User GetUserByEmail(string email) { try { return(userDataLayer.GetUser(email)); } catch (Exception e) { ExceptionHandler.PrintException(e, new StackTrace(true)); throw e; } }