private void DeletePictures(ICollection <Picture> pictures)
        {
            List <Picture> picturesForDelete = new List <Picture>();

            foreach (var picture in pictures)
            {
                var id     = picture.PictureId;
                var result = Request.Form[id.ToString()];
                if (result == "true,false")
                {
                    var pictureForDelete = _pictureService.GetPictureById(id);
                    picturesForDelete.Add(pictureForDelete);
                }
            }
            _pictureService.DeletePictures(picturesForDelete);
            _pictureService.SavePictures();
        }