示例#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();
 }
示例#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>());
 }