I have the base API controller:
public class BaseController<T> : ApiController
{
/// <summary>
/// Method GetByYear in Base class
/// </summary>
/// <param name="year"></param>
/// <returns></returns>
public virtual IQueryable<T> GetByYear(int year)
{
return null;
}
}
and child that just inherited method GetByYear from base:
public class HouseController : BaseController<House>
{
/// <summary>
/// Method Test
/// </summary>
/// <returns></returns>
public string Test()
{
return "Test";
}
}
I use Help page to create auto documentation. And in result I get:
I want to get a description of the two methods.
How can I get XML comments to the method GET in child class without overriding?
Or should I copy it to my child class?
When I use <inheritdoc />
in HouseController I get the same result as above, and I do not want to override each method when it is not needed:
/// <inheritdoc />
public override IQueryable<House> GetByYear(int year)
{
return base.GetByYear(year);
}
Another question: How can I use ghostdoc with default Help page?