Пример #1
0
        /// <summary>
        /// Returns the board of a user. The user must be logged in
        /// </summary>
        /// <param name="email">The email of the user</param>
        /// <returns>A response object with a value set to the board, instead the response should contain a error message in case of an error</returns>
        public Response <Board> GetBoard(string email)
        {
            Response rs = us.validateLoggedIn(email);

            if (rs.ErrorOccured)
            {
                return(new Response <Board>(rs.ErrorMessage));
            }
            return(bs.GetBoard(email));
        }
Пример #2
0
 /// <summary>
 /// Returns the board of a user. The user must be logged in
 /// </summary>
 /// <param name="email">The email of the user</param>
 /// <returns>A response object with a value set to the board, instead the response should contain a error message in case of an error</returns>
 public Response <Board> GetBoard(string email)
 {
     return(bService.GetBoard(email));
 }
Пример #3
0
 /// <summary>
 /// Returns the board of a user. The user must be logged in
 /// </summary>
 /// <param name="email">The email of the user</param>
 /// <returns>A response object with a value set to the board, instead the response should contain a error message in case of an error</returns>
 public Response <Board> GetBoard(string email)
 {
     return(boardService.GetBoard(userService.UserC.GetId(email), userService.UserC.currentId(), userService.UserC));
 }