protected void RadGrid1_OnDeleteCommand(object sender, GridCommandEventArgs e)
 {
     try
     {
         var editableItem = ((GridEditableItem)e.Item);
         var productId    = (int)editableItem.GetDataKeyValue("Id");
         var product      = new ProductDto();
         editableItem.UpdateValues(product);
         product.Id = productId;
         if (product.WeightedItem == null)
         {
             product.WeightedItem = false;
         }
         var result = ProductOperations.Delete(product);
         if (result.IsSuccess)
         {
             this.ShowToast(ToastTypeEnum.Success, "Successfully deleted Item", "Success");
             return;
         }
         ShowErrorMessage(result.ErrorMessage);
     }
     catch (Exception ex)
     {
         ErrorHandler.LogException(ex);
         ShowErrorMessage("There was a problem Updating the item.");
     }
 }