Ejemplo n.º 1
0
        public static Blog Get(this IBlogDao dDao, long id)
        {
            var res = dDao.Select(id, null, null);

            if (res.Count == 1)
            {
                return(res[0]);
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 2
0
 public static List <Blog> GetUserBlogs(this IBlogDao dDao, Guid userID)
 {
     return(dDao.Select(null, userID, null));
 }