public string AddProduct(string name, string description, int number, double value) { string idProduct = ""; try { Product p = new Product(name, description, number, value); productDAO.Create(p); idProduct = p.Id.ToString(); } catch (Exception ex) { return("Error: " + ex.Message); } return("Sucess"); }
public void Create(Product item) { DO.Create(item); }