i'm new to WebAPI and had a few qeustion to custom method calling. So, im working with Entity Framework and created a WebAPI with basic CRUD methods. But now i want to add some custom methods, is it possible to call arrays as parameters? And when yes, how?
This is my method:
public void AddRoles(Guid userid, Guid[] roleids)
So how it is possible to call this method through webapi? I tryed it with
http://localhost:60690/api/MyController/AddRoles...
And is it possible to call void method? What is the response?
thanks and greetings, Joerg