示例#1
0
        private Models.Api.InLabClient GetInLabClient(Badge b)
        {
            var result = new InLabClient()
            {
                LastName        = b.LastName,
                FirstName       = b.FirstName,
                AccessEventTime = b.CurrentAccessTime.Value
            };

            return(result);
        }
示例#2
0
 private Item CreateRssItem(InLabClient x)
 {
     return(new Item()
     {
         Title = x.FullName,
         Description = string.Format("{0:#.00 hours}", x.Duration),
         Link = x.CardNumber,
         PubDate = x.EventDateTime,
         Guid = x.ClientID.ToString()
     });
 }