コード例 #1
0
 public VedioAsset Create(VedioAsset vedio)
 {
     context.Add(vedio);
     foreach (var resoVedio in vedio.Vedios)
     {
         _warehouseUploader.Upload2Warehouse(vedio.Id, resoVedio.VedioPath, resoVedio.Resolution);
     }
     return(vedio);
 }
コード例 #2
0
 public GraphicAsset Create(GraphicAsset graphic)
 {
     context.Add(graphic);
     foreach (var resoGraphic in graphic.Graphics)
     {
         _warehouseUploader.Upload2Warehouse(graphic.Id, resoGraphic.GraphicPath, resoGraphic.Resolution);
     }
     return(graphic);
 }