Пример #1
0
        public async Task <IActionResult> LoadData()
        {
            try
            {
                var albumId = long.Parse(Request.Query["albumId"].FirstOrDefault());
                var result  = _service.LoadPhotosFromAlbumData(HttpContext, _apiConfig.Value.ApiPhotosForAlbumPath, albumId);

                return(Json(result));
            }
            catch (Exception ex)
            {
                return(Json(null));
            }
        }