public User GetUser(long id) { using (var db = new Database(_settings)) { return db.SingleOrDefault<User>("where Id = @0", id); } }
public User GetUserByExternalId(string externalId) { using (var db = new Database(_settings)) { return db.SingleOrDefault<User>("where ExternalId = @0", externalId); } }