public void AddFile(ServiceBook book, ServiceFile file) { unit.Books.AddFile(book.ToDalBook(), file.ToDalFile()); unit.Save(); }
public void RemoveFile(ServiceFile file) { unit.Books.DeleteFile(file.ToDalFile()); unit.Save(); }