public bool Put(int id, DataAcess.Models.Book book) { if (id > 0) { return(_book.UpdateBook(id, book)); } return(false); }
public int Post(DataAcess.Models.Book book) { return(_book.CreateBook(book)); }