//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); }
public GetLastSentResponse Handle(GetLastSent query) { return(new GetLastSentResponse(query.query())); }