//public void RemovePic(Picture picture)
        //{
        //    var pic = Pics.FirstOrDefault(p => p.Id == picture.Id);
        //    if(pic != null)
        //    {
        //        Pics.Remove(pic);
        //    };
        //}

        protected async Task DeletePicture(string picId)
        {
            var result = await PictureService.DeleteAsync(picId);

            if (!string.IsNullOrEmpty(result.Id.ToString()))
            {
                var pic = Article.Pictures.FirstOrDefault(p => p.Id == Guid.Parse(picId));
                if (pic != null)
                {
                    Article.Pictures.Remove(pic);
                }
                Pics.Remove(Pics.FirstOrDefault(p => p.Id == Guid.Parse(picId)));
                StateHasChanged();
            }
        }