public Invite GetInviteFromSecurityCode(string securityCode)
        {
            Invite invite;

            using (var uow = _db.GetTransaction())
            {
                invite = _db.FirstOrDefault <Invite>("WHERE SecurityCode = @0", securityCode);
                uow.Complete();
            }
            return(invite);
        }
 public Models.Event GetEventDetails(Guid eventId)
 {
     Models.Event eventDetails;
     using (var uow = _db.GetTransaction())
     {
         eventDetails = _db.FirstOrDefault <Models.Event>("WHERE Id = @0", eventId);
         uow.Complete();
     }
     return(eventDetails);
 }