Ejemplo n.º 1
0
        // GET: Employee/Gallery/Albums
        public ActionResult Albums()
        {
            try
            {
                var _albumList = new List <AlbumInfo>();

                using (AlbumRepository Repo = new AlbumRepository())
                {
                    _albumList = Repo.GetAlbumList();
                }

                return(View(_albumList));
            }

            catch (Exception ex)
            {
                return(View("Error", new HandleErrorInfo(ex, "Gallery", "Albums")));
            }
        }