's suppose to give back the assets in order based on t.Count but I think it might not be working because the .Count is actually not part of asset which is what is being selected, but I have no idea how to fix this.
As you can see there is an assetVisits table and an assets table, and I need to get back the assets in order of the assetVisits.AccessCount but I can't get it to work, what the hell??

A:

You asked an almost identical question a couple of hours ago, and the answer is the same: do the ordering after you have selected the rows you want to order.
Change:
return final.Take(limit);

to:
var finalOrdered = from asset in final
    join assetVisit in db.AssetVisits on asset.AssetID equals assetVisit.AssetID
    orderby assetVisit.AccessCounter
    select asset;

return finalOrdered.Take(limit);

You can also remove the premature 'orderby' from your own code, since it is not doing anything.



Q:

Можно ли стилизовать пусть маршрута в Google maps?

чтобы дорогу от точки до точки можно было покрасить в произвольный цвет

A:

Вот здесь посмотрите 
var polylineOptions={};
polylineOptions.strokeColor="#438391";
polylineOptions.strokeOpacity=.6;
polylineOptions.strokeWeight=4;

 //now assign to map render options
mapRendererOptions.polylineOptions=polylineOptions;

//now set renderer
directionsDisplay.setOptions(
new google.maps.DirectionsRenderer(mapRendererOptions));

Также по Вашему вопросу на англоязычном stackoverflow



Q:

Changing 

I have a solution for my problem, but im looking for a more efficient way to solve it. 
I basicly want to code a function, that adds new lines of styles in css with Javascript. 
My solution is this.
function addStyle(newStyleLine){
var mainStyle = document.getElementsByTagName("style")[0];
mainStyle.innerHTML = mainStyle.innerHTML + "body {"+newStyleLine+"}";
}

And i have a <style> tag in my html. It works fine, but i think when i will 