public Book GetByName(string name) { return(dapperTools.Query <Book>(@"Select * from Books where Name=@name", new { name }).First()); }
public role GetUserRole(int userID) { return(dapperTools.Query <role>(@"Select * From roles where userid=@userID", new { userID }).First()); }