public List <ProductsWM> GetAllProducts()
 {
     try
     {
         return(ProductsMapping.MaptoWM(_productsOperations.GetAllProducts()));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }
 public List <ProductsWM> FindProducts(Expression <Func <Products, bool> > predicate)
 {
     try
     {
         return(ProductsMapping.MaptoWM(_productsOperations.FindProducts(predicate)));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }
 public ProductsWM GetProduct(int id)
 {
     try
     {
         return(ProductsMapping.MaptoWM(_productsOperations.GetProduct(id)));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }