/// <summary> /// Adds a new column, given it's name and a location to place it. /// 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">Location to place to column</param> /// <param name="Name">new Column name</param> /// <returns>A response object with a value set to the new Column, the response should contain a error message in case of an error</returns> public Response <Column> AddColumn(string email, int columnOrdinal, string Name) { Response rs = us.validateLoggedIn(email); if (rs.ErrorOccured) { return(new Response <Column>(rs.ErrorMessage)); } return(bs.AddColumn(email, columnOrdinal, Name)); }
/// <summary> /// Adds a new column, given it's name and a location to place it. /// 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">Location to place to column</param> /// <param name="Name">new Column name</param> /// <returns>A response object with a value set to the new Column, the response should contain a error message in case of an error</returns> public Response <Column> AddColumn(string email, int columnOrdinal, string Name) { return(bService.AddColumn(email, columnOrdinal, Name)); }
/// <summary> /// Adds a new column, given it's name and a location to place it. /// 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">Location to place to column</param> /// <param name="Name">new Column name</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> AddColumn(string email, int columnOrdinal, string Name) { return(boardService.AddColumn(userService.UserC.GetId(email), userService.UserC.currentId(), columnOrdinal, Name, userService.UserC)); }