public List <DTO.Visitor> GetVisitorsForSignout()
        {
            List <DTO.Visitor> signoutvisitors = new List <DTO.Visitor>();

            using (var entities = new FitzroyVisitorsEntities())
            {
                var visitors = entities.Visitors.ToList();

                foreach (var v in visitors)
                {
                    var vis = new DTO.Visitor();
                    {
                        vis.FirstName     = v.FirstName;
                        vis.LastName      = v.LastName;
                        vis.Company       = v.Company;
                        vis.PersonVisting = v.PersonVisiting;
                        vis.TagID         = v.Company;
                        vis.TimeIn        = v.TimeIn; // Timstamp In
                        vis.TimeOut       = v.TimeOut;
                        vis.Signature     = v.Signature;
                    };
                    signoutvisitors.Add(vis);
                }
            }
            return(signoutvisitors);
        }
 public void SaveNewVisistor(DTO.Visitor visitor)
 {
     using (var entities = new FitzroyVisitorsEntities())
     {
         var vis = new DAL.Visitor();
         {
             vis.FirstName      = visitor.FirstName;
             vis.LastName       = visitor.LastName;
             vis.Company        = visitor.Company;
             vis.PersonVisiting = visitor.PersonVisting;
             vis.TagID          = visitor.Company;
             vis.TimeIn         = DateTime.Now; // Timstamp In
             vis.Signature      = visitor.Signature;
         };
         entities.Visitors.Add(vis);
         entities.SaveChanges();
     }
     return;
 }