# Invoking custom services using "Data Source Method"

**URL:** <https://forum.radzen.com/t/invoking-custom-services-using-data-source-method/6045>\
**Category:** Blazor Server\
**Created:** [December 17, 2020, 6:33am UTC](https://forum.radzen.com/t/invoking-custom-services-using-data-source-method/6045 "2020-12-17T06:33:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ajit\_Goel](https://forum.radzen.com/user_avatar/forum.radzen.com/ajit_goel/32/4791_2.png) [@Ajit\_Goel](https://forum.radzen.com/u/Ajit_Goel)\
**Post date:** [December 17, 2020, 6:33am UTC](https://forum.radzen.com/t/invoking-custom-services-using-data-source-method/6045/1 "2020-12-17T06:33:15Z")

</div>

I have created a custom service under the "services" folder, in Visual Studio. Is it recommended to invoke this by selecting "Data Source Method" or would I use the "Execute c#" type? I do not see my service listed there(under name when selecting "Data Source Method" type), only the names belonging to the DatabaseService and SecurityService, that were created initially.

 ![image](https://forum.radzen.com/uploads/default/original/2X/e/e1ef849b01580fa091fd0088d70890bf139b02ed.png)

---

<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:** [December 17, 2020, 7:18am UTC](https://forum.radzen.com/t/invoking-custom-services-using-data-source-method/6045/2 "2020-12-17T07:18:32Z")

</div>

Radzen will list methods part of your page not from services. You can declare your custom method in the page partial class.

---

<div class="post-metadata">

**Author:** ![Jose\_Carrillo](https://forum.radzen.com/user_avatar/forum.radzen.com/jose_carrillo/32/1582_2.png) [@Jose\_Carrillo](https://forum.radzen.com/u/Jose_Carrillo)\
**Post date:** [April 23, 2021, 3:24pm UTC](https://forum.radzen.com/t/invoking-custom-services-using-data-source-method/6045/3 "2021-04-23T15:24:09Z")

</div>

Hi Atanas, Enchev. Is there any way to use/invoke custom methods from a general class library? I mean, I can use the current page partial class methods, but I would like to reuse methods from a shared class library.

---

<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:** [April 23, 2021, 4:25pm UTC](https://forum.radzen.com/t/invoking-custom-services-using-data-source-method/6045/4 "2021-04-23T16:25:46Z")

</div>

Nothing changed since my last reply
