Пример #1
0
        public JsonResult UploadData(ProductVideoModel productVideoModel)
        {
            if (productVideoModel.Id == 0)
            {
                throw new System.Exception("Invalid video Id");
            }

            _videoService.UpdateVideoLink((ulong)productVideoModel.Id,
                                          productVideoModel.FromSec,
                                          productVideoModel.ToSec,
                                          productVideoModel.OverrideTitleAttribute);

            return(Json(new { linkId = productVideoModel.Id }));
        }
Пример #2
0
 public ProductVideoManagementModel()
 {
     AddVideoModel = new ProductVideoModel();
 }
Пример #3
0
 public static ProductVideo ToEntity(this ProductVideoModel model, ProductVideo destination)
 {
     return(model.MapTo(destination));
 }
Пример #4
0
 public static ProductVideo ToEntity(this ProductVideoModel model)
 {
     return(model.MapTo <ProductVideoModel, ProductVideo>());
 }