Exemplo n.º 1
0
 public void UpdateBoard(Models.Board board)
 {
     Sql.ExecuteNonQuery(
         "Board_Update",
         new Dictionary <string, object>()
     {
         { "boardId", board.boardId },
         { "teamId", board.teamId },
         { "name", board.name },
         { "color", board.color }
     }
         );
 }
Exemplo n.º 2
0
 public int CreateBoard(Models.Board board, int userId)
 {
     return(Sql.ExecuteScalar <int>(
                "Board_Create",
                new Dictionary <string, object>()
     {
         { "userId", userId },
         { "teamId", board.teamId },
         { "favorite", board.favorite },
         { "name", board.name },
         { "security", board.security },
         { "color", board.color }
     }
                ));
 }
Exemplo n.º 3
0
 public int Import(Models.Board board, int userId, bool merge = false)
 {
     return(Sql.ExecuteScalar <int>(
                "Board_Import",
                new Dictionary <string, object>()
     {
         { "userId", userId },
         { "teamId", board.teamId },
         { "favorite", board.favorite },
         { "name", board.name },
         { "security", board.security },
         { "color", board.color },
         { "merge", merge }
     }
                ));
 }