public IEnumerable <ServiceBook> GetTagBooks(ServiceTag tag) { return(unit.Tags.GetBooks(tag.ToDalTag()).Select(e => e.ToServiceBook())); }
public void AddTag(ServiceTag tag) { unit.Tags.Create(tag.ToDalTag()); unit.Save(); }
public void RemoveTag(ServiceTag tag) { unit.Tags.Delete(tag.ToDalTag()); unit.Save(); }
public void AddBookTag(ServiceBook book, ServiceTag tag) { unit.Books.AddTag(book.ToDalBook(), tag.ToDalTag()); unit.Save(); }
public void RemoveBookTag(ServiceBook book, ServiceTag tag) { unit.Books.DeleteTag(book.ToDalBook(), tag.ToDalTag()); unit.Save(); }