GetSubcategory Method

TriCodeTest

MenuCreationController..::..GetSubcategory Method

Get request for a specific subcategory with a specific id

Namespace:  TriCodeTest.Controllers
Assembly:  TriCodeTest (in TriCodeTest.dll)

Syntax


[HttpGetAttribute]
public Task<ActionResult> GetSubcategory(
	int id
)

Parameters

id
Type: Int32
Database Id of a subcategory

Return Value

Returns a subcategory model object matching the id