public List <TeamDetails> GetTeamDetails() { DAL_Team team = new DAL_Team(); List <TeamDetails> teamDetails = team.GetTeamDetails(); return(teamDetails); }//View Team Details
}//View Team Details public SaveResponses SaveTeamMembers(TeamDetails teamDetails) { SaveResponses saveResponses = new SaveResponses(); DAL_Team team = new DAL_Team(); try { if (teamDetails.MemberList.Count > 0) { bool saveSuccess = team.SaveTeamMembers(teamDetails); if (saveSuccess) { saveResponses.saveStatus = "true"; saveResponses.messageType = "success"; } else { saveResponses.saveStatus = "false"; saveResponses.messageType = "error"; } } else { saveResponses.saveStatus = "false"; saveResponses.messageType = "error"; } return(saveResponses); } catch (Exception ex) { throw ex; } }
public static bool joinTeam(string teamID, string stuID) { if (queryJoinStatus(teamID, stuID, true).IndexOf('*') != -1) { return(DAL_Team.joinTeam(teamID, stuID)); } else { return(DAL_Team.joinTeam(teamID, stuID, true)); } }
public static string queryJoinStatus(string teamID, string stuID, bool returnExists = false) { string ret = DAL_Team.queryJoinStatus(teamID, stuID); if (ret.IndexOf('*') != -1) { if (returnExists) { return(ret); } else { return("未加入"); } } return(ret); }
public bool CheckSameTeam(string teamName, string userName) { DAL_Team team = new DAL_Team(); try { if (team.CheckSameTeam(teamName, userName)) { return(true); } else { return(false); } } catch (Exception ex) { throw ex; } }
public bool CheckTeamAvailable(TaskDetails taskDetails) { DAL_Team team = new DAL_Team(); try { if (team.CheckTeamAvailable(taskDetails)) { return(true); } else { return(false); } } catch (Exception ex) { throw ex; } }
public static DataSet queryAllTeam() { return(DAL_Team.queryAllTeam()); }
public static bool quitTeam(string teamID, string stuID) { return(DAL_Team.quitTeam(teamID, stuID)); }
public static DataSet queryMember(string TeamID) { return(DAL_Team.queryMember(TeamID)); }
public static bool modifyTeam(Team team) { return(DAL_Team.modifyTeam(team)); }
public static bool deleteTeamByID(string id) { return(DAL_Team.deleteTeamByID(id)); }