Esempio n. 1
0
        public HttpResponseMessage EditProductType([FromBody] ProductTypesDomain productTypesDomain)
        {
            Product_Types product_Types = new Product_Types();
            var           mapper        = InventorySalesMapping.MapConfig.CreateMapper();

            mapper.Map(productTypesDomain, product_Types);

            InventorySalesUOW.ProductTypeRepository.Update(product_Types);

            InventorySalesUOW.Commit();
            return(Request.CreateResponse(HttpStatusCode.OK, "Success"));
        }
Esempio n. 2
0
        public ProductTypesDomain CreateProductTypesDomain()
        {
            ProductTypesDomain productTypesDomain = new ProductTypesDomain();

            return(productTypesDomain);
        }