public async Task <IActionResult> Delete(int id) { var result = await _consultantService.DeleteByIDAsync(id); if (!result.Success) { return(BadRequest()); } return(Ok(result.Resource)); }