public IActionResult GetOutBoundIntegrationCredentialsList(OutBoundIntegartionCredentailsViewModel model, int draw, int start, int length) { OutBoundIntegrationCredentialsReq request = new OutBoundIntegrationCredentialsReq(); OutBoundIntegrationCredentialsRes response = new OutBoundIntegrationCredentialsRes(); request.CreatedUser = ckUserEmailId; request.Application_Id = model.Application_Id; request.Key = model.Key; request.Value = model.Value; request.Start = start; if (length == 0) { length = 10; } request.Length = length; response = userAndRoleMgmtProviders.GetOutBoundIntegrationCredentialsList(request, token).Result; return(Json(new { draw = draw, recordsTotal = response.TotalCount, recordsFiltered = response.TotalCount, data = response.OutBoundIntegrationSearchDataList })); }
public IActionResult SaveOutBoundIntegrationCredentials(OutBoundIntegartionCredentailsViewModel model) { OutBoundIntegrationCredentialsReq request = new OutBoundIntegrationCredentialsReq(); OutBoundIntegrationCredentialsRes response = new OutBoundIntegrationCredentialsRes(); request.Application_Id = model.Application_Id; request.ConfigId = model.ConfigId; request.Key = model.Key; request.Value = model.Value; request.CreatedUser = ckUserEmailId; request.EditUser = ckUserEmailId; var retValue = userAndRoleMgmtProviders.CheckOutBoundConfigExit(request, token).Result; if (retValue) { response.ResponseStatus.Status = "Failure"; response.ResponseStatus.ErrorMessage = "Record already exists."; return(Json(new { responseText = response.ResponseStatus.ErrorMessage, status = response.ResponseStatus.Status })); } else { response = userAndRoleMgmtProviders.SaveOutBoundIntegrationCredentials(request, token).Result; } return(Json(new { responseText = response.ResponseStatus.ErrorMessage, status = response.ResponseStatus.Status })); }
public async Task <bool> CheckOutBoundConfigExit(OutBoundIntegrationCredentialsReq request, string ticket) { bool response = false; response = await serviceProxy.PostData(_configuration.GetValue <string>("ServiceSettings:CheckOutBoundConfigExit"), request, typeof(bool), ticket); return(response); }
public async Task <bool> CheckOutBoundConfigExit([FromBody] OutBoundIntegrationCredentialsReq request) { var response = new OutBoundIntegrationCredentialsRes(); bool data = await _settingsRepository.CheckOutBoundConfigExit(request); return(data); }
public IActionResult DeleteOutBoundIntegrationCredentials(OutBoundIntegartionCredentailsViewModel model) { OutBoundIntegrationCredentialsReq request = new OutBoundIntegrationCredentialsReq(); OutBoundIntegrationCredentialsRes response = new OutBoundIntegrationCredentialsRes(); request.Application_Id = model.Application_Id; request.ConfigId = model.ConfigId; request.Key = model.Key; request.Value = model.Value; request.CreatedUser = ckUserEmailId; request.EditUser = ckUserEmailId; response = userAndRoleMgmtProviders.DeleteOutBoundIntegrationCredentials(request, token).Result; return(Json(response.ResponseStatus)); }
public async Task <OutBoundIntegrationCredentialsRes> DeleteOutBoundIntegrationCredentials(OutBoundIntegrationCredentialsReq request, string ticket) { OutBoundIntegrationCredentialsRes response = new OutBoundIntegrationCredentialsRes(); response = await serviceProxy.PostData(_configuration.GetValue <string>("ServiceSettings:DeleteOutBoundIntegrationCredentials"), request, typeof(OutBoundIntegrationCredentialsRes), ticket); return(response); }
public async Task <OutBoundIntegrationCredentialsRes> DeleteOutBoundIntegrationCredentials([FromBody] OutBoundIntegrationCredentialsReq request) { var response = new OutBoundIntegrationCredentialsRes(); response = await _settingsRepository.DeleteOutBoundIntegrationCredentials(request); return(response); }