Beispiel #1
0
        public void BookMark(string userId, Guid bookId)
        {
            var bookmarkStatus = StatusRepository.GetSingle(s => s.Title == "Bookmarked");
            var progression    = new Progression
            {
                BookId   = bookId,
                StatusId = bookmarkStatus.Id,
                UserId   = userId,
                Date     = DateTime.Now
            };

            ProgressionRepository.Add(progression);
        }
Beispiel #2
0
 public void Add(SProgression entity)
 {
     ProgressionRepository.Add(SProgression.StoD(entity));
 }