Example #1
0
        /// <summary>
        /// Save Product details in database
        /// </summary>
        /// <param name="productDetails">Product details to be saved</param>
        /// <returns>returns boolean value indicating if the records are saved in database</returns>
        bool IProductService.SaveProductDetails(ProductDTO productDetails)
        {
            product productEntity = new product();

            ObjectMapper.Map(productDetails, productEntity);
            return ProductRepository.Save(productEntity);
        }
Example #2
0
 /// <summary>
 /// Save Product details in database
 /// </summary>
 /// <param name="productDetails">Product details to be saved</param>
 /// <returns>returns boolean value indicating if the records are saved in database</returns>
 public bool SaveProductDetails(ProductDTO productDetails)
 {
     return ProductService.SaveProductDetails(productDetails);
 }