Example #1
0
        public string GetListPhoto()
        {
            if (string.IsNullOrEmpty(Photo))
            {
                return(string.Empty);
            }

            string[] splitedPhotos = Photo.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries);
            string   extension;
            string   name = GetName(splitedPhotos[0], out extension);

            return(string.Format("{0}/{1}{2}", CategoryName.ToLower(), name, extension));
        }
Example #2
0
 public string GetCategoryForUrl()
 {
     return(CategoryName.ToLower().UnPolish().Replace(" ", "-"));
 }