Beispiel #1
0
 public void Insert(ViewModel.Admin.Product.AddProductPicturesViewModel viewModel)
 {
     _productImages.Add(new ProductImage
     {
         Path      = viewModel.Image1,
         ProductId = viewModel.ProductId
     });
     _productImages.Add(new ProductImage
     {
         Path      = viewModel.Image2,
         ProductId = viewModel.ProductId
     });
     _productImages.Add(new ProductImage
     {
         Path      = viewModel.Image3,
         ProductId = viewModel.ProductId
     });
     _productImages.Add(new ProductImage
     {
         Path      = viewModel.Image4,
         ProductId = viewModel.ProductId
     });
     _productImages.Add(new ProductImage
     {
         Path      = viewModel.Image5,
         ProductId = viewModel.ProductId
     });
 }
        public override System.Threading.Tasks.Task <System.Web.Mvc.ActionResult> AddPictures(ViewModel.Admin.Product.AddProductPicturesViewModel viewModel)
        {
            var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.AddPictures);

            ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "viewModel", viewModel);
            AddPicturesOverride(callInfo, viewModel);
            return(System.Threading.Tasks.Task.FromResult(callInfo as ActionResult));
        }
 partial void AddPicturesOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, ViewModel.Admin.Product.AddProductPicturesViewModel viewModel);