/// <summary> /// Moves a column to the left, 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> MoveColumnLeft(string email, int columnOrdinal) { Response rs = us.validateLoggedIn(email); if (rs.ErrorOccured) { return(new Response <Column>(rs.ErrorMessage)); } return(bs.MoveColumnLeft(email, columnOrdinal)); }
/// <summary> /// Moves a column to the left, 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> MoveColumnLeft(string email, int columnOrdinal) { return(bService.MoveColumnLeft(email, columnOrdinal)); }
/// <summary> /// Moves a column to the left, 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> MoveColumnLeft(string email, int columnOrdinal) { return(boardService.MoveColumnLeft(userService.UserC.GetId(email), userService.UserC.currentId(), columnOrdinal, userService.UserC)); }