Exemplo n.º 1
0
        /// <summary>
        /// Moves a column to the right, swapping it with the column wich is currently located there.
        /// The first column is identified by 0, the ID increases by 1 for each column
        /// </summary>
        /// <param name="email">Email of the user. Must be logged in</param>
        /// <param name="columnOrdinal">Current location of the column</param>
        /// <returns>A response object with a value set to the moved Column, the response should contain a error message in case of an error</returns>
        public Response <Column> MoveColumnRight(string email, int columnOrdinal)
        {
            Response rs = us.validateLoggedIn(email);

            if (rs.ErrorOccured)
            {
                return(new Response <Column>(rs.ErrorMessage));
            }
            return(bs.MoveColumnRight(email, columnOrdinal));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Moves a column to the right, swapping it with the column wich is currently located there.
 /// The first column is identified by 0, the ID increases by 1 for each column
 /// </summary>
 /// <param name="email">Email of the user. Must be logged in</param>
 /// <param name="columnOrdinal">Current location of the column</param>
 /// <returns>A response object with a value set to the moved Column, the response should contain a error message in case of an error</returns>
 public Response <Column> MoveColumnRight(string email, int columnOrdinal)
 {
     return(bService.MoveColumnRight(email, columnOrdinal));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Moves a column to the right, swapping it with the column wich is currently located there.
 /// The first column is identified by 0, the ID increases by 1 for each column
 /// </summary>
 /// <param name="email">Email of the user. Must be logged in</param>
 /// <param name="columnOrdinal">Current location of the columns</param>
 /// <returns>A response object with a value set to the column, the response should contain a error message in case of an error</returns>
 public Response <Column> MoveColumnRight(string email, int columnOrdinal)
 {
     return(boardService.MoveColumnRight(userService.UserC.GetId(email), userService.UserC.currentId(), columnOrdinal, userService.UserC));
 }