thearticles
New Member
I read some questions here but they all can be defined as separate variables but I think mine is little bit different:\[code\] var sliderRecordList = this._sliderService.GetAllAsQueryable(); var sliderModelList = sliderRecordList.Select(record => new SliderModel() { Id = record.Id, SlideName = record.SlideName, SlideOrder = record.SlideOrder, SlideUrl = record.SlideUrl, SlideImageUrl = Url.Content("~/Content/AhsenSliderImages/" + record.Id + ".jpg"), Enabled = record.Enabled });\[/code\]The problem relies on where \[code\]Url.Content()\[/code\] method is called. Any suggestion? I tried to remove \[code\]Url.Content()\[/code\] method and didn't work.