Beispiel #1
0
        public DateTime Get(string id)
        {
            var timestamp = _databaseService.Select <TimeStamp>("Id", id).FirstOrDefault();

            if (timestamp != null)
            {
                return(timestamp.Stamp);
            }

            return(DateTime.UtcNow);
        }
Beispiel #2
0
 public Account GetById(long id)
 {
     return(_databaseService.Select <Account>("Id", id).FirstOrDefault());
 }