Beispiel #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 }));
        }
 public ProductVideoManagementModel()
 {
     AddVideoModel = new ProductVideoModel();
 }
 public static ProductVideo ToEntity(this ProductVideoModel model, ProductVideo destination)
 {
     return(model.MapTo(destination));
 }
 public static ProductVideo ToEntity(this ProductVideoModel model)
 {
     return(model.MapTo <ProductVideoModel, ProductVideo>());
 }