public ActionResult SaveProduct(ProductDto product)
{
var success = true;
var message = String.Empty;
try
{
ProductServices.WithDto(product).Get();
}
catch (Exception e)
{
success = false;
message = e.ToString();
}
return this.Direct(new { success, data = product, message });
}