Beispiel #1
0
 public static void Update(Models.Team team)
 {
     Sql.ExecuteNonQuery(
         "Team_Update",
         new { team.teamId, team.orgId, team.name, team.description }
         );
 }
Beispiel #2
0
 public static void UpdateBoard(Models.Board board)
 {
     Sql.ExecuteNonQuery(
         "Board_Update",
         new { board.boardId, board.orgId, board.name, board.color, board.cardtype }
         );
 }
Beispiel #3
0
 public static void UpdateSettings(int orgId, int teamId, int groupId)
 {
     Sql.ExecuteNonQuery(
         "Team_UpdateSettings",
         new { teamId, orgId, groupId }
         );
 }
Beispiel #4
0
 public static void UpdateTeam(Models.Team team)
 {
     Sql.ExecuteNonQuery(
         "Team_Update",
         new { team.teamId, team.ownerId, team.security, team.name, team.website, team.description }
         );
 }
Beispiel #5
0
 public static void Archive(int listId)
 {
     Sql.ExecuteNonQuery("List_Archive",
                         new Dictionary <string, object>()
     {
         { "listId", listId }
     }
                         );
 }
Beispiel #6
0
 public static void Delete(string key)
 {
     Sql.ExecuteNonQuery("GoogleToken_Delete",
                         new Dictionary <string, object>()
     {
         { "key", key }
     }
                         );
 }
Beispiel #7
0
 public static void Move(int boardId, int[] cardIds)
 {
     Sql.ExecuteNonQuery("List_Move",
                         new Dictionary <string, object>()
     {
         { "boardId", boardId },
         { "ids", string.Join(",", cardIds) }
     }
                         );
 }
Beispiel #8
0
 public static void Delete(int boardId, int cardId)
 {
     Sql.ExecuteNonQuery("Card_Delete",
                         new Dictionary <string, object>()
     {
         { "boardId", boardId },
         { "cardId", cardId }
     }
                         );
 }
Beispiel #9
0
 public static void UpdateName(int teamId, string name)
 {
     Sql.ExecuteNonQuery("Team_UpdateName",
                         new Dictionary <string, object>()
     {
         { "teamId", teamId },
         { "name", name }
     }
                         );
 }
Beispiel #10
0
 public static void UpdateEmail(int userId, string email)
 {
     Sql.ExecuteNonQuery("User_UpdateEmail",
                         new Dictionary <string, object>()
     {
         { "userId", userId },
         { "email", email }
     }
                         );
 }
Beispiel #11
0
 public static void AllColor(int userId, bool allColor)
 {
     Sql.ExecuteNonQuery("User_AllColor",
                         new Dictionary <string, object>()
     {
         { "userId", userId },
         { "allcolor", allColor }
     }
                         );
 }
 public static void UpdateStatus(int addressId, bool status)
 {
     Sql.ExecuteNonQuery("AddressBook_UpdateStatus",
                         new Dictionary <string, object>()
     {
         { "addressId", addressId },
         { "status", status }
     }
                         );
 }
Beispiel #13
0
 public static void UpdateStatus(int subscriptionId, bool status)
 {
     Sql.ExecuteNonQuery("Subscription_UpdateStatus",
                         new Dictionary <string, object>()
     {
         { "subscriptionId", subscriptionId },
         { "status", status }
     }
                         );
 }
Beispiel #14
0
 public static void UpdateStripeCustomerId(int userId, string customerId)
 {
     Sql.ExecuteNonQuery("User_UpdateStripeCustomerId",
                         new Dictionary <string, object>()
     {
         { "userId", userId },
         { "customerId", customerId }
     }
                         );
 }
Beispiel #15
0
 public static void UpdateStripePaymentMethodId(int userId, string paymentMethodId)
 {
     Sql.ExecuteNonQuery("User_UpdateStripePaymentMethod",
                         new Dictionary <string, object>()
     {
         { "userId", userId },
         { "paymentMethodId", paymentMethodId }
     }
                         );
 }
Beispiel #16
0
 public static void UpdateCredentialUserId(int userId, string credentialUserId)
 {
     Sql.ExecuteNonQuery("User_UpdateCredentialUserId",
                         new Dictionary <string, object>()
     {
         { "userId", userId },
         { "credentialUserId", credentialUserId }
     }
                         );
 }
Beispiel #17
0
 public static void UpdateGoogleUserId(int userId, string googleUserId)
 {
     Sql.ExecuteNonQuery("User_UpdateGoogleUserId",
                         new Dictionary <string, object>()
     {
         { "userId", userId },
         { "googleUserId", googleUserId }
     }
                         );
 }
Beispiel #18
0
 public static void KeepMenuOpen(int userId, bool keepOpen)
 {
     Sql.ExecuteNonQuery("User_KeepMenuOpen",
                         new Dictionary <string, object>()
     {
         { "userId", userId },
         { "keepmenu", keepOpen }
     }
                         );
 }
 public static void Delete(int teamId, int addressId)
 {
     Sql.ExecuteNonQuery("AddressBook_DeleteEntry",
                         new Dictionary <string, object>()
     {
         { "teamId", teamId },
         { "addressId", addressId }
     }
                         );
 }
Beispiel #20
0
 public static void UpdatePassword(int userId, string password)
 {
     Sql.ExecuteNonQuery("User_UpdatePassword",
                         new Dictionary <string, object>()
     {
         { "userId", userId },
         { "password", password }
     }
                         );
 }
Beispiel #21
0
 public static void Create(string key, string value)
 {
     Sql.ExecuteNonQuery("GoogleToken_Create",
                         new Dictionary <string, object>()
     {
         { "key", key },
         { "value", value }
     }
                         );
 }
 public static void UpdateEmail(int addressId, string email)
 {
     Sql.ExecuteNonQuery("AddressBook_UpdateEmail",
                         new Dictionary <string, object>()
     {
         { "addressId", addressId },
         { "email", email }
     }
                         );
 }
 public static void UpdateFullName(int addressId, string firstname, string lastname)
 {
     Sql.ExecuteNonQuery("AddressBook_UpdateFullName",
                         new Dictionary <string, object>()
     {
         { "addressId", addressId },
         { "firstname", firstname },
         { "lastname", lastname }
     }
                         );
 }
Beispiel #24
0
 public static void Delete(int teamId, int ownerId)
 {
     Sql.ExecuteNonQuery(
         "Team_Delete",
         new Dictionary <string, object>()
     {
         { "teamId", teamId },
         { "ownerId", ownerId }
     }
         );
 }
Beispiel #25
0
 public static void UpdateSort(int fieldId, short sort)
 {
     Sql.ExecuteNonQuery(
         "AddressField_UpdateSort",
         new Dictionary <string, object>()
     {
         { "fieldId", fieldId },
         { "sort", sort }
     }
         );
 }
Beispiel #26
0
 public static void UpdateName(int boardId, int cardId, string name)
 {
     Sql.ExecuteNonQuery("Card_UpdateName",
                         new Dictionary <string, object>()
     {
         { "boardId", boardId },
         { "cardId", cardId },
         { "name", name }
     }
                         );
 }
Beispiel #27
0
 public static void UpdateDescription(int boardId, int cardId, string description)
 {
     Sql.ExecuteNonQuery("Card_UpdateDescription",
                         new Dictionary <string, object>()
     {
         { "boardId", boardId },
         { "cardId", cardId },
         { "description", description }
     }
                         );
 }
Beispiel #28
0
 public static void UpdateLabel(int fieldId, string label)
 {
     Sql.ExecuteNonQuery(
         "AddressField_UpdateLabel",
         new Dictionary <string, object>()
     {
         { "fieldId", fieldId },
         { "label", label }
     }
         );
 }
 public static void Add(int campaignId, int addressId)
 {
     Sql.ExecuteNonQuery(
         "CampaignQueue_Add",
         new Dictionary <string, object>()
     {
         { "campaignId", campaignId },
         { "addressId", addressId }
     }
         );
 }
Beispiel #30
0
 public static void Delete(int teamId, string email)
 {
     Sql.ExecuteNonQuery(
         "TeamMember_Delete",
         new Dictionary <string, object>()
     {
         { "teamId", teamId },
         { "email", email }
     }
         );
 }