public IActionResult DeleteIntegrationPlatform(IntegrationPlatformViewModel model)
        {
            IntegartionPlatform_Res response = new IntegartionPlatform_Res();
            IntegartionPlatform_Req request  = new IntegartionPlatform_Req();

            request.CreateUser           = ckUserEmailId;
            request.Application          = model.Application_Id;
            request.ApplicationName      = model.ApplicationName;
            request.Module               = model.Module;
            request.ModuleName           = model.ModuleName;
            request.Action               = model.ActionId;
            request.ActionName           = model.ActionName;
            request.URL                  = model.URL;
            request.SystemFieldName      = model.SystemFieldName;
            request.ApplicationFieldName = model.ApplicationFieldName;
            try
            {
                response = userAndRoleMgmtProviders.DeleteIntegrationPlatform(request, token).Result;
                return(RedirectToAction("ViewIntegrationPlatformList"));
            }
            catch (Exception ex)
            {
                response.ResponseStatus.Status        = "Error";
                response.ResponseStatus.StatusMessage = "Error occurred while deleting record";
                return(Json(new { responseText = response.ResponseStatus.StatusMessage, status = response.ResponseStatus.Status }));
            }
        }
        public IActionResult GetIntegrationPlatformList(IntegrationPlatformViewModel model, int draw, int start, int length)
        {
            IntegartionPlatform_Req request  = new IntegartionPlatform_Req();
            IntegartionPlatform_Res response = new IntegartionPlatform_Res();

            request.CreateUser      = ckUserEmailId;
            request.Application     = model.Application_Id;
            request.ApplicationName = model.ApplicationName;
            request.Module          = model.Module;
            request.ModuleName      = model.ModuleName;
            request.Action          = model.ActionId;
            request.ActionName      = model.ActionName;
            request.TypeName        = model.TypeName == "Select" ? null:model.TypeName;
            request.Start           = start;
            if (length == 0)
            {
                length = 10;
            }
            request.Length = length;


            response = userAndRoleMgmtProviders.GetIntegrationPlatformList(request, token).Result;

            return(Json(new
            {
                draw = draw,
                recordsTotal = response.PlatformTotalCount,
                recordsFiltered = response.PlatformTotalCount,
                data = response.AppModuleActionInfoList
            }));
        }
        public IActionResult SaveIntegrationPlatform(IntegrationPlatformViewModel model)
        {
            IntegartionPlatform_Res response = new IntegartionPlatform_Res();
            IntegartionPlatform_Req request  = new IntegartionPlatform_Req();

            request.CreateUser      = ckUserEmailId;
            request.Application     = model.Application_Id;
            request.ApplicationName = model.ApplicationName;
            request.Module          = model.Module;
            request.ModuleName      = model.ModuleName;
            request.Action          = model.ActionId;
            request.ActionName      = model.ActionName;
            request.TypeName        = model.TypeName;
            var retValue = userAndRoleMgmtProviders.CheckPlatformExit(request, token).Result;

            if (retValue)
            {
                response.ResponseStatus.Status        = "Alert";
                response.ResponseStatus.StatusMessage = "Integration Platform already exist.";
                return(Json(new { responseText = response.ResponseStatus.StatusMessage, status = response.ResponseStatus.Status }));
            }
            else
            {
                response = userAndRoleMgmtProviders.SaveIntegrationPlatform(request, token).Result;
                return(RedirectToAction("ViewIntegrationPlatformList"));
            }
        }
Пример #4
0
        public async Task <IntegartionPlatform_Res> DeleteIntegrationPlatform(IntegartionPlatform_Req request, string ticket)
        {
            IntegartionPlatform_Res response = new IntegartionPlatform_Res();

            response = await serviceProxy.PostData(_configuration.GetValue <string>("ServiceSettings:DeleteIntegrationPlatform"), request, typeof(IntegartionPlatform_Res), ticket);

            return(response);
        }
Пример #5
0
        public async Task <IntegartionPlatform_Res> DeleteIntegrationPlatform([FromBody] IntegartionPlatform_Req request)
        {
            var response = new IntegartionPlatform_Res();

            response = await _settingsRepository.DeleteIntegrationPlatform(request);

            return(response);
        }
Пример #6
0
        public async Task <bool> CheckPlatformExit([FromBody] IntegartionPlatform_Req request)
        {
            var response = new IntegartionPlatform_Res();

            bool data = await _settingsRepository.CheckPlatformExit(request);

            return(data);
        }
        public IActionResult SaveIntegrationPlatformConfig(IntegrationPlatformViewModel model)
        {
            IntegartionPlatform_Res response = new IntegartionPlatform_Res();
            IntegartionPlatform_Req request  = new IntegartionPlatform_Req();

            request.CreateUser           = ckUserEmailId;
            request.Application          = model.Application_Id;
            request.ApplicationName      = model.ApplicationName;
            request.Module               = model.Module;
            request.ModuleName           = model.ModuleName;
            request.Action               = model.ActionId;
            request.ActionName           = model.ActionName;
            request.URL                  = model.URL;
            request.SystemFieldName      = model.SystemFieldName;
            request.ApplicationFieldName = model.ApplicationFieldName;
            request.EditUser             = ckUserEmailId;
            request.Configurations       = model.Configurations;
            request.TypeName             = model.TypeName;
            response = userAndRoleMgmtProviders.SaveIntegrationPlatform(request, token).Result;
            return(Json(response));
        }