public Event(Type _action, BookCondition _bookCondition, Client _client) { BookCondition = _bookCondition; Action = _action; Client = _client; Date = DateTime.Now; }
public BookCondition CreateBookCondition(Book book) { BookCondition newBookCondition = new BookCondition(book); repository.AddBookCondition(newBookCondition); return(newBookCondition); }
public Event CreateEvent(Event.Type _action, BookCondition _bookCondition, Client _client) { Event newEvent = new Event(_action, _bookCondition, _client); repository.AddEvent(newEvent); return(newEvent); }
public void DeleteBookCondition(BookCondition condition) { repository.DeleteBookCondition(condition); }
public string ShowBookCondition(BookCondition bookCondition) { return(ShowBook(bookCondition.Book) + " (" + bookCondition.Condition + ")"); }