public ActionResult SendToFreightForwarder(int id) { var model = new PurchaseOrderHeaderListModel(); // Activate the process of sending the purchase to the freight forwarder try { var error = PurchasingService.SendPurchaseOrderToFreightForwarder(id); if (error.IsError) { model.Error.SetError(error.Message); } else { model.Error.SetInfo(EvolutionResources.infPurchaseOrderSentToFreightForwarder); } } catch (Exception e1) { model.Error.SetError(e1); } return(Json(model, JsonRequestBehavior.AllowGet)); }