public VedioAsset Create(VedioAsset vedio) { context.Add(vedio); foreach (var resoVedio in vedio.Vedios) { _warehouseUploader.Upload2Warehouse(vedio.Id, resoVedio.VedioPath, resoVedio.Resolution); } return(vedio); }
public GraphicAsset Create(GraphicAsset graphic) { context.Add(graphic); foreach (var resoGraphic in graphic.Graphics) { _warehouseUploader.Upload2Warehouse(graphic.Id, resoGraphic.GraphicPath, resoGraphic.Resolution); } return(graphic); }