Exemplo n.º 1
0
 public static int Import(Models.Board board, int userId, bool merge = false)
 {
     return(Sql.ExecuteScalar <int>(
                "Board_Import",
                new { board.orgId, board.teamId, userId, board.name, board.favorite, board.color, merge }
                ));
 }
Exemplo n.º 2
0
 public static int CreateBoard(Models.Board board, int userId)
 {
     return(Sql.ExecuteScalar <int>(
                "Board_Create",
                new { board.orgId, board.teamId, userId, board.name, board.favorite, board.color, board.cardtype }
                ));
 }
Exemplo n.º 3
0
 public static void UpdateBoard(Models.Board board)
 {
     Sql.ExecuteNonQuery(
         "Board_Update",
         new { board.boardId, board.orgId, board.name, board.color, board.cardtype }
         );
 }
Exemplo n.º 4
0
 public static int CreateBoard(Models.Board board, int userId)
 {
     return(Sql.ExecuteScalar <int>(
                "Board_Create",
                new { userId, board.teamId, board.favorite, board.name, board.security, board.color }
                ));
 }
Exemplo n.º 5
0
 public static 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.º 6
0
 public static 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.º 7
0
 public static 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 }
     }
                ));
 }