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 } } )); }
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 } } ); }