Ejemplo n.º 1
0
 protected override Task RunImpl()
 {
     return(_sampleDataService.AddSampleVideoViews(new AddSampleVideoViews {
         NumberOfViews = 100
     }));
 }
        /// <summary>
        /// Tells the sample data service to add some sample views to videos on the site.
        /// </summary>
        public async Task <JsonNetResult> AddVideoViews(AddVideoViewsViewModel model)
        {
            await _sampleDataService.AddSampleVideoViews(new AddSampleVideoViews { NumberOfViews = model.NumberOfViews });

            return(JsonSuccess());
        }