Пример #1
0
 public Author GetById(int Id)
 {
     return
         (MapperAbstraction.Query <Author>(
              $"{Resources.Author.GetAuthorBase} WHERE Author.IdAuthor = @IdAuthor",
              new { IdAuthor = Id })
          .FirstOrDefault());
 }
Пример #2
0
 public Book GetById(int Id)
 {
     return
         (MapperAbstraction.Query <Book>(
              $"{Resources.Book.GetBookBase} WHERE Book.IdBook = @IdBook",
              new { IdBook = Id })
          .FirstOrDefault());
 }