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 IActionResult ViewOutBoundIntegrationCredentials(OutBoundIntegartionCredentailsViewModel model) { Integration_Search_Request request = new Integration_Search_Request(); model.ApplicationList = userAndRoleMgmtProviders.GetApplicationAttributes(request, token).Result.Application_DataList; return(PartialView("~/Areas/Settings/Views/UserAndRoleMgmt/_ViewOutBoundIntegrationCredentials.cshtml", model)); }
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 IActionResult ViewOutBoundIntegrationCredentialsList(OutBoundIntegartionCredentailsViewModel model) { return(PartialView("~/Areas/Settings/Views/UserAndRoleMgmt/_ViewOutBoundIntegrationCredentialsList.cshtml", model)); }