public async Task <IActionResult> UpdateMasterFilter(MasterFilterDto masterFilterDto) { try { var data = await _globalGridManager.UpdateMasterFilterDataAsync(masterFilterDto, User); // creating the azioni object passing the related details and description. var azioniDto = _utilityManager.GetAzioniDtoObject(User, "update", " saved filter " + masterFilterDto.TntfilFiltropagId); // logging the activity record by the user. await _azioniManager.AzioniInsert(azioniDto); return(Ok(data)); } catch (Exception x) { var errorObj = await _utilityManager.ReturnErrorObj(x, User, "Master Filter Update"); if (x.Message == "Token Expired") { return(Unauthorized()); } return(BadRequest(errorObj)); } }