public MawApi.ViewModels.Videos.VideoViewModel Adapt(Video v) { if (v == null) { throw new ArgumentNullException(nameof(v)); } return(new MawApi.ViewModels.Videos.VideoViewModel { Id = v.Id, CategoryId = v.CategoryId, CreateDate = DateTime.MinValue, Latitude = v.Latitude, Longitude = v.Longitude, Duration = v.Duration, Thumbnail = _adapter.Adapt(v.Thumbnail), ThumbnailSq = _adapter.Adapt(v.ThumbnailSq), VideoScaled = _adapter.Adapt(v.VideoScaled), VideoFull = _adapter.Adapt(v.VideoFull), VideoRaw = _adapter.Adapt(v.VideoRaw), Self = _urlSvc.GetVideoUrl(v.Id), CategoryLink = _urlSvc.GetCategoryUrl(v.CategoryId), CommentsLink = _urlSvc.GetCommentsUrl(v.Id), RatingLink = _urlSvc.GetRatingUrl(v.Id) }); }