public ITeamUser GetTeamUser(Guid teamId, Guid userId) { ITeamUser teamUser = null; using (var context = new Data.ScheduleContext()) { var item = context.TeamUsers.FirstOrDefault(x => x.TeamId == teamId.ToString() && x.UserId == userId.ToString()); if (item != null) { teamUser = Mapper.Map <TeamUserDto>(item); } } return(teamUser); }
public ChangeResult UpdateTeamUser(ITeamUser teamUser) { return(UpdateTeamUser(new List <ITeamUser> { teamUser })); }
public ChangeResult AddTeamUser(ITeamUser teamUser) { return(AddTeamUser(new List <ITeamUser> { teamUser })); }