public bool Delete(int modelID) { Book book = _bookDAL.Get(a => a.ID == modelID); return(_bookDAL.Delete(book) > 0); }
public book GetByID(int ID) { return(bookDAL.Get(ID)); }
public Book GetById(int id) { return(_bookDAL.Get(x => x.Id == id)); }
public IDataResult <Book> GetById(int bookId) { //Business codes return(new SuccessDataResult <Book>(_bookDal.Get(filter: x => x.BookId == bookId))); }
public Book Get(int id) { return(_bookDAL.Get(id)); }