Ejemplo n.º 1
0
 /// <summary>
 /// Adds product
 /// </summary>
 /// <param name="product">product to be added</param>
 /// <returns>success if added sucessfuly</returns>
 public Result AddProduct(SharedLibs.DataContracts.Product product)
 {
     return(Result.SuccessFormat("Product added"));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This method adds product into the datasource
 /// </summary>
 /// <param name="product">Product object</param>
 /// <returns>Result object</returns>
 public Result AddProduct(SharedLibs.DataContracts.Product product)
 {
     return(AddProduct(product.Name, product.Price, product.ID));
 }