Example #1
0
        public object Post(Reservation reservation)
        {
            Check.NotNull(reservation, "reservation");
            var id = reservationEngine.AddReservation(reservation);

            NotificationEmail.Send(reservation);
            return(new { Id = id });
        }
Example #2
0
        private static void CheckForReservations()
        {
            var user = new User("mircea.nistor", "Mircea Nistor", "*****@*****.**");

            var reservation = new Reservation(user, "Daily LPL Meeting", new DateTime(2013, 9, 13), new DateTime(2013, 9, 13).AddHours(1));

            reservation.AddParticipant(user);
            NotificationEmail.Send(reservation);
        }
    public void NotifyNewComment(int id)
    {
        var email = new NotificationEmail
        {
            To      = "*****@*****.**",
            Comment = comment.Text
        };

        email.Send();
    }