public IHttpActionResult AddNewProduct(string title, string color, string supplier, double price, string imageName) { productContext.AddNewProduct(title, color, supplier, price, imageName); return(Ok("Product Added Successfully")); }
public bool AddNewProduct(string name, string description, decimal price, string collection, string productType, string ImgUrl) { return(context.AddNewProduct(name, description, price, collection, productType, ImgUrl)); }