public PartialViewResult RoleRelatedUsers(string role_id, string user_id, string input)
        {
            GenelRepository         gnlDB = RepositoryManager.GetRepository <GenelRepository>();
            gnl_roles_related_users role_related_users = new gnl_roles_related_users();

            Role model    = new  Role();
            Guid role_uid = Guid.Empty;
            Guid user_uid = Guid.Empty;

            if (Guid.TryParse(role_id, out role_uid) && Guid.TryParse(user_id, out user_uid))
            {
                if (role_uid != Guid.Empty && user_uid != Guid.Empty)
                {
                    List <gnl_role_related_users_v> list = gnlDB.GetRoleRelatedUsers(role_uid);

                    if (list.Where(x => x.user_id == user_uid).Count() <= 0)
                    {
                        model.role_id = role_uid;
                        model.user_id = user_uid;
                        gnlDB.AddRoleRelatedUsers(role_related_users, model);
                    }
                    else
                    {
                        if (input != "")
                        {
                            model.errorMessage = Resources.GlobalResource.role_related_users_defined;
                        }
                    }
                }
                else
                {
                    if (input != "")
                    {
                        model.errorMessage = Resources.GlobalResource.role_related_role_not_defined;
                    }
                }
            }

            List <gnl_role_related_users_v> listRoleRelatedUsers = gnlDB.GetRoleRelatedUsers(role_uid);

            model.roleRelatedUsers = listRoleRelatedUsers;

            return(PartialView("RoleRelatedUsers", model));
        }