예제 #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());
 }