# Problem with Execute code result

**URL:** <https://forum.radzen.com/t/problem-with-execute-code-result/5794>\
**Category:** Blazor Server\
**Created:** [November 25, 2020, 8:58pm UTC](https://forum.radzen.com/t/problem-with-execute-code-result/5794 "2020-11-25T20:58:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kim](https://forum.radzen.com/user_avatar/forum.radzen.com/kim/32/9988_2.png) [@kim](https://forum.radzen.com/u/kim)\
**Post date:** [November 25, 2020, 8:58pm UTC](https://forum.radzen.com/t/problem-with-execute-code-result/5794/1 "2020-11-25T20:58:02Z")

</div>

Hello Radzen Team!

There is something weird with the result of an Execute function:

 ![image](https://forum.radzen.com/uploads/default/original/2X/a/a407d3faf5694a0d276885ef2b2d4ff287906920.png)  
 ![image](https://forum.radzen.com/uploads/default/original/2X/4/4efc8e91ac63865efea43e9ccf4fbb2c45657038.png)

In my case, I'm expecting a int? return type.

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [November 26, 2020, 7:28am UTC](https://forum.radzen.com/t/problem-with-execute-code-result/5794/2 "2020-11-26T07:28:55Z")

</div>

Hi @kim,

Can you check what's returned from your delete method? Here is what I have and it works normally:

 ![image](https://forum.radzen.com/uploads/default/original/2X/a/a9484d4dd889d71fb5276105ea5b8cb24ed61168.png)  
 ![image](https://forum.radzen.com/uploads/default/original/2X/0/0557548296bf724e0a2304c4b44eb6e5582998bd.png)  
 ![image](https://forum.radzen.com/uploads/default/original/2X/4/463f1cea75cb692fecfb291f769d04f710dc948d.png)

---

<div class="post-metadata">

**Author:** ![kim](https://forum.radzen.com/user_avatar/forum.radzen.com/kim/32/9988_2.png) [@kim](https://forum.radzen.com/u/kim)\
**Post date:** [November 26, 2020, 11:05am UTC](https://forum.radzen.com/t/problem-with-execute-code-result/5794/3 "2020-11-26T11:05:38Z")

</div>

![image](https://forum.radzen.com/uploads/default/original/2X/8/805e6b8926674c08771ff2fd63af37f501d80889.png)

After checking your example, it seems that I forgot the "return" keyword. Everything is working now.  
Thanks for the help!

---

<div class="post-metadata">

**Author:** ![kim](https://forum.radzen.com/user_avatar/forum.radzen.com/kim/32/9988_2.png) [@kim](https://forum.radzen.com/u/kim)\
**Post date:** [November 26, 2020, 11:10am UTC](https://forum.radzen.com/t/problem-with-execute-code-result/5794/4 "2020-11-26T11:10:55Z")

</div>

Also, before you go, could you add a condition to the first Execute in your Click handler?  
I can't get Radzen to format things correctly with multiple nested conditions.

 ![image](https://forum.radzen.com/uploads/default/original/2X/8/80ee226390504865d25be3aed30ffd0e7e7ab12a.png)  
 ![image](https://forum.radzen.com/uploads/default/original/2X/f/f57d421e47f8e510d5ad2247a84c45083112af85.png)  
 ![image](https://forum.radzen.com/uploads/default/original/2X/b/b3ed43844a473924e8bb7794f702a12d2915d5fd.png)  
 ![image](https://forum.radzen.com/uploads/default/original/2X/c/c7dcb1101029b2bb8d4e2f154559da431f5203cb.png)  
There's a missing bracket.

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [November 26, 2020, 12:12pm UTC](https://forum.radzen.com/t/problem-with-execute-code-result/5794/5 "2020-11-26T12:12:42Z")

</div>

Confirmed! Fix will be published early next week!
