public static ContentViewModel GetNextContent(ContentViewModel c) { Content next = DBHelper.GetNextContent(c.BookId, c.Code); return(ModelConverter.ContentToView(next)); }
public static ContentViewModel GetPrevContent(ContentViewModel c) { Content prev = DBHelper.GetPrevContent(c.BookId, c.Code); return(ModelConverter.ContentToView(prev)); }