Пример #1
0
        public BorrowDTO Get(int bookID, int studentID)
        {
            BorrowDTO Borrow = _borrowService.Find(bookID, studentID);

            if (Borrow == null)
            {
                throw new DataException(string.Format(ValidationConstants.SDataNotFoundWithValue, "Borrow", string.Format("book: {0} student: {1}", bookID, studentID)));
            }

            return(Borrow);
        }