Example #1
0
 public 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 }
     }
                ));
 }
Example #2
0
 public 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 }
     }
         );
 }