public IEnumerable <ServiceBook> GetListBooks(ServiceList list)
 {
     return(unit.Lists.GetBooks(list.ToDalList()).Select(e => e.ToServiceBook()));
 }
 public void AddListBook(ServiceList list, ServiceBook book)
 {
     unit.Lists.AddBook(list.ToDalList(), book.ToDalBook());
     unit.Save();
 }
 public void AddList(ServiceList list)
 {
     unit.Lists.Create(list.ToDalList());
     unit.Save();
 }
 public void UpdateList(ServiceList list)
 {
     unit.Lists.Update(list.ToDalList());
     unit.Save();
 }
 public void RemoveListBook(ServiceList list, ServiceBook book)
 {
     unit.Lists.DeleteBook(list.ToDalList(), book.ToDalBook());
     unit.Save();
 }
 public void RemoveList(ServiceList list)
 {
     unit.Lists.Delete(list.ToDalList());
     unit.Save();
 }