private LikeDTO GetUserLikes(int chapterId, string authorId) { return(_fabric.CreateChaptersRepository().Get(chapterId).ToModel().Likes.FirstOrDefault(r => r.Author.Id.Equals(authorId))); }
public void Create(ChapterDTO chapter) { _fabric.CreateChaptersRepository().Create(chapter.ToEntity()); }