public void SubmitForm(string permissionIds, string keyValue)
        {
            var moduleList       = moduleApp.FindList(c => c.isEnabled == true).ToList();
            var moduleButtonList = buttonApp.FindList(c => c.isEnabled == true).ToList();;
            var roleAuthList     = new List <RoleAuthenticationEntity>();

            string[] permissionArr = permissionIds.Split(',');

            foreach (var itemId in permissionArr)
            {
                var roleAuthEntity = new RoleAuthenticationEntity();
                roleAuthEntity.Create();
                roleAuthEntity.authRoleGuid   = keyValue;
                roleAuthEntity.authModuleGuid = itemId;
                if (moduleList.Find(c => c.moduleGuid == itemId) != null)
                {
                    roleAuthEntity.authModuleType = 1;
                }
                else if (moduleButtonList.Find(m => m.btnGuid == itemId) != null)
                {
                    roleAuthEntity.authModuleType = 2;
                }
                roleAuthList.Add(roleAuthEntity);
            }
            roleAuthRepository.SubmitForm(roleAuthList, keyValue);
        }
 public Task <int> SubmitFormAsync(RoleAuthenticationEntity entity, string keyValue)
 {
     throw new NotImplementedException();
 }
 public void SubmitForm(RoleAuthenticationEntity entity, string keyValue)
 {
     throw new NotImplementedException();
 }