Exemplo n.º 1
0
        public HttpResponseMessage AddProductImage([FromBody] ProductImageDomain productImageDomain)
        {
            Product_Image product_Image = new Product_Image();

            mapper.Map(productImageDomain, product_Image);

            InventorySalesUnitOfWork.ProductImageRepository.Add(product_Image);

            InventorySalesUnitOfWork.Commit();
            return(Request.CreateResponse(HttpStatusCode.OK, "Success"));
        }
        public ProductImageDomain CreateProductImageDomain()
        {
            ProductImageDomain productImageDomain = new ProductImageDomain();

            return(productImageDomain);
        }