I need to return action and controller info with web api in asp core .
I have this controller :
[BreadCrumb(Order = 0)]
[DisplayName("سطح دسترسی پویا")]
[Route("api/[controller]")]
public class ValuesController : Controller
{
// GET api/values
[DisplayName("برگشت اطلاعات")]
[BreadCrumb(Order = 1)]
[HttpGet]
public IEnumerable<string> Get()
{
return new string[] { "value1", "value2" };
}
}
now i need to return DisplayName
and all info . how can i do this ?