public void AddMachineRefTeam(ApiMachineRefTeamResponseModel item) { if (!this.MachineRefTeams.Any(x => x.Id == item.Id)) { this.MachineRefTeams.Add(item); } }
public virtual ApiMachineRefTeamRequestModel MapResponseToRequest( ApiMachineRefTeamResponseModel response) { var request = new ApiMachineRefTeamRequestModel(); request.SetProperties( response.MachineId, response.TeamId); return(request); }
public virtual ApiMachineRefTeamResponseModel MapRequestToResponse( int id, ApiMachineRefTeamRequestModel request) { var response = new ApiMachineRefTeamResponseModel(); response.SetProperties(id, request.MachineId, request.TeamId); return(response); }