public async Task <IActionResult> MatchingRichieste(string richid, string cliId, int status) { try { var data = await _richiesteManager.MatchingRichiesteAsync(richid, cliId, status); if (data == null) { return(null); } // creating the azioni object passing the related details and description. var azioniDto = _utilityManager.GetAzioniDtoObject(User, "get", "matching richiese"); // logging the activity record by the user. await _azioniManager.AzioniInsert(azioniDto); 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 Matching Richieste"); // Returning the error object. return(BadRequest(errorObj)); } }