示例#1
0
        public bool Delete(int modelID)
        {
            Book book = _bookDAL.Get(a => a.ID == modelID);

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