public async Task <IActionResult> Index()
        {
            var pictures = await _service.GetAllAsync();

            if (pictures.IsValid)
            {
                return(Ok(_mapper.Map <IEnumerable <PictureViewModel> >(pictures.Result)));
            }
            return(BadRequest(pictures.ErrorsList));
        }