public static ContentViewModel GetNextContent(ContentViewModel c) { Content next = DBHelper.GetNextContent(c.BookId, c.Code); return(ModelConverter.ContentToView(next)); }
public static ContentViewModel GetContentView(int id, string code) { Content c = DBHelper.GetContent(id, code); return(ModelConverter.ContentToView(c)); }
public static ContentViewModel GetPrevContent(ContentViewModel c) { Content prev = DBHelper.GetPrevContent(c.BookId, c.Code); return(ModelConverter.ContentToView(prev)); }