Esempio n. 1
0
        private bool ImageExists(string imageFileName)
        {
            Dictionary <string, object> filter = new Dictionary <string, object>();

            filter.Add("ImageFileName", imageFileName);
            var count = imageRepository.Count(filter);

            return(count != 0);
        }
Esempio n. 2
0
        public ActionResult ShowPager(SearchImageModel searchImage)
        {
            searchImage.Count = _imageRepository.Count(searchImage);

            return(PartialView("_Pager", searchImage));
        }