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")); }
public ProductTypesDomain CreateProductTypesDomain() { ProductTypesDomain productTypesDomain = new ProductTypesDomain(); return(productTypesDomain); }