Ejemplo n.º 1
0
        public static ContentViewModel GetNextContent(ContentViewModel c)
        {
            Content next = DBHelper.GetNextContent(c.BookId, c.Code);

            return(ModelConverter.ContentToView(next));
        }
Ejemplo n.º 2
0
        public static ContentViewModel GetPrevContent(ContentViewModel c)
        {
            Content prev = DBHelper.GetPrevContent(c.BookId, c.Code);

            return(ModelConverter.ContentToView(prev));
        }