public async Task <IActionResult> GetAll() { try { var entity = await _campusClient.GetAll(); return(new MyOkResult(entity)); } catch (Exception ex) { return(new ErrorResult(ex)); } }
public async Task <IActionResult> GetAll() { var campus = await _campusClient.GetAll(); return(Json(campus)); }