public async Task <IActionResult> PostMasterFilter(MasterFilterDto masterFilterDto) { try { var data = await _globalGridManager.InsertMasterFilterDataAsync(masterFilterDto); //// 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, "AG GRID ERROR"); if (x.Message == "Token Expired") { return(Unauthorized()); } return(BadRequest(errorObj)); } }
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)); } }