public async Task <IActionResult> GetAllRichiesteByClientId(string clientid, int counter) { try { var data = await _richiesteManager.FindAllByCliIdAsync(clientid, counter); return(Ok(data)); } catch (Exception x) { // Code block of Exception handling and logging into log_operazione table. var errorObj = await _utilityManager.ReturnErrorObj(x, User, "Get Richieste"); // Returning the error object. return(BadRequest(errorObj)); } }