public ActionResult CreateProduct(ProductViewModel product) { var productDataService = new ProductDataService(); productDataService.CreateProduct(product); return(new JsonResult() { Data = product, ContentType = "application/json" }); }
public ActionResult CreateProduct(ProductViewModel product) { var productDataService = new ProductDataService(); productDataService.CreateProduct(product); return(new JsonResult() { Data = product, ContentType = "application/json" }); }