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); } }
public static List <Blog> GetUserBlogs(this IBlogDao dDao, Guid userID) { return(dDao.Select(null, userID, null)); }