示例#1
0
        public static ContentViewModel GetNextContent(ContentViewModel c)
        {
            Content next = DBHelper.GetNextContent(c.BookId, c.Code);

            return(ModelConverter.ContentToView(next));
        }
示例#2
0
        public static ContentViewModel GetContentView(int id, string code)
        {
            Content c = DBHelper.GetContent(id, code);

            return(ModelConverter.ContentToView(c));
        }
示例#3
0
        public static ContentViewModel GetPrevContent(ContentViewModel c)
        {
            Content prev = DBHelper.GetPrevContent(c.BookId, c.Code);

            return(ModelConverter.ContentToView(prev));
        }