public async Task <IActionResult> Get(int categoryId) { bool status = false; var data = await _categoryApiClient.Get(categoryId); if (data == null) { status = false; } else { status = true; } return(Json(new { data = data, status = status })); }
public async Task <IActionResult> Get(int categoryId) { bool status = false; var data = await _categoryApiClient.Get(categoryId); if (data == null) { status = false; } else { status = true; } return(Json(new { data = data, status = status })); }