Esempio n. 1
0
 public static int CreateTeam(Models.Team team)
 {
     return(Sql.ExecuteScalar <int>(
                "Team_Create",
                new Dictionary <string, object>()
     {
         { "ownerId", team.ownerId },
         { "security", team.security },
         { "name", team.name },
         { "website", team.website },
         { "description", team.description }
     }
                ));
 }
Esempio n. 2
0
 public static void UpdateTeam(Models.Team team)
 {
     Sql.ExecuteNonQuery(
         "Team_Update",
         new Dictionary <string, object>()
     {
         { "teamId", team.teamId },
         { "ownerId", team.ownerId },
         { "security", team.security },
         { "name", team.name },
         { "website", team.website },
         { "description", team.description }
     }
         );
 }