Esempio n. 1
0
        private IResult CheckIfBookNameExists(string bookName)
        {
            var result = _returnBookDal.GetReturnBookDetails(r => r.BookName == r.BookName).Any();

            if (result)
            {
                return(new ErrorResult(Messages.ReturnBookAlreadyExists));
            }

            return(new SuccessResult());
        }
Esempio n. 2
0
 public List <ReturnBookDetailsDto> GetByBookName(string bookName)
 {
     return(_returnBookDal.GetReturnBookDetails().Where(c => c.BookName.ToLower().Contains(bookName.ToLower())).ToList());
 }