Exemple #1
0
 public JsonResult AddProduct(Product product)
 {
     try
     {
         var response = _productRepository.AddProduct(product);
         return(Json(response));
     }
     catch (Exception e)
     {
         return(Json(false));
     }
 }