/// <summary> /// Ejecuta la valración /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void PerformRanking(object sender, EventArgs e) { try { int invoiceItemId = Convert.ToInt32(SessionUtilHelper.GetIdFromSession(Session)); TrackingManager trackingManager = new TrackingManager(); //TODO - AGREGAR CONTROL DE ERROR Tracking tracking = trackingManager.Get(invoiceItemId); tracking.Ranking = UCFormRanking.Ranking; tracking.Status = Tracking.StatusType.Valorado; bool success = trackingManager.Edit(tracking); if (!success && trackingManager.HasErrors) { ((front)Master).Alert.Show("Error", trackingManager.ErrorDescription); } else { LoadProductTracking(); } //} } catch (Exception exception) { ((front)Master).Alert.Show("Exception", exception.Message); } }