public void SaveBoekenSort(string volgorde, bool?IsGedeeldLijst)
        {
            if (!IsGedeeldLijst.HasValue)
            {
                return;
            }
            List <BoekOrder> resList = new List <BoekOrder>();

            if (volgorde == null || volgorde == "")
            {
                return;
            }
            ApplicationUser user = bs.GetUser(User.Identity.Name);

            volgorde = volgorde.Replace(",toevoegenBoek", "");
            string[]   splitted = volgorde.Split(',');
            List <int> ids      = new List <int>();

            foreach (string str in splitted)
            {
                bool check;
                int  res;
                check = int.TryParse(str, out res);
                if (!check)
                {
                    return;
                }
                if (!bs.IsBoekAccessibleByUser(res, User.Identity.Name))
                {
                    return;
                }
                if (ids.Contains(res))
                {
                    return;
                }
                ids.Add(res);
            }
            if (bs.GetBoekOrderLijst(User.Identity.Name, (bool)IsGedeeldLijst).Count() != ids.Count())
            {
                return;
            }
            int count = 0;

            foreach (int id in ids)
            {
                resList.Add(new BoekOrder()
                {
                    BoekId        = id,
                    EigenaarId    = user.Id,
                    Index         = count,
                    IsSharedLijst = (bool)IsGedeeldLijst
                });
                count++;
            }
            bs.UpdateLijst(resList);
        }