public async Task <IActionResult> DeleteMasterFilter(int filterId) { try { var data = await _globalGridManager.DeleteMasterFilterDataAsync(filterId); //// creating the azioni object passing the related details and description. //var azioniDto = await _utilityManager.GetAzioniDtoObject(User, "get", "AG GRID DATA of " + tableName); //// logging the activity record by the user. //await _talentBLLWrapper.AzuiniBll.AzioniInsert(azioniDto); return(Ok(data)); } catch (Exception x) { var errorObj = await _utilityManager.ReturnErrorObj(x, User, "Master Filter Delete"); if (x.Message == "Token Expired") { return(Unauthorized()); } return(BadRequest(errorObj)); } }