Tag

type

1 stories
J
Joynal Abedin

How i will pass parameter & set it's type in API?

[HttpGet(\"{id:int}\")] public VillaDTO GetVilla(int id) { return VillaStore.villasList.FirstOrDefault(u => u.Id == id); } Here i set id which type int and passed the int type id ...

2