public Author GetById(int Id) { return (MapperAbstraction.Query <Author>( $"{Resources.Author.GetAuthorBase} WHERE Author.IdAuthor = @IdAuthor", new { IdAuthor = Id }) .FirstOrDefault()); }
public Book GetById(int Id) { return (MapperAbstraction.Query <Book>( $"{Resources.Book.GetBookBase} WHERE Book.IdBook = @IdBook", new { IdBook = Id }) .FirstOrDefault()); }