Example #1
0
        public PhotoEntity GetById(int id)
        {
            if (id <= 0)
            {
                throw new ArgumentOutOfRangeException();
            }
            DalPhoto photo = null;

            photo = photoRepository.GetById(id);

            if (ReferenceEquals(photo, null))
            {
                return(null);
            }
            return(photo.ToBLLPhoto());
        }