public async Task <IActionResult> GetAllCompetenzaByCliId(string clientid) { try { var data = await _richiesteManager.GetAllCompetenzaByCliIdAsync(clientid); 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 Competenza"); // Returning the error object. return(BadRequest(errorObj)); } }