public async Task <IActionResult> GetStatiRichListRisDescr(string langName) { try { var data = await _richiesteManager.GetStatiRichListRisDescrAsync(langName); // creating the azioni object passing the related details and description. var azioniDto = _utilityManager.GetAzioniDtoObject(User, "get", "Stati_Rich_List_Ris_Descr"); // 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 Stati_Rich_List_Ris_Descr"); // Returning the error object. return(BadRequest(errorObj)); } }