コード例 #1
0
        //gets the last date when a mail has been sent to a user
        //used to avoid spamming
        public DateTime getLastSent(string username)
        {
            Mediator    m           = new Mediator();
            GetLastSent getLastSent = new GetLastSent(username);

            return(m.getLastSentHandler.Handle(getLastSent).response);
        }
コード例 #2
0
 public GetLastSentResponse Handle(GetLastSent query)
 {
     return(new GetLastSentResponse(query.query()));
 }