PageRenderTime 289ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/Source/Samples/ExplicitConsole/Domain/CreatePerson.cs

#
C# | 19 lines | 17 code | 2 blank | 0 comment | 0 complexity | 738bab2ed876d6fa6938e3b23f6139e2 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. using System;
  2. using Bifrost.Commands;
  3. namespace ExplicitConsole.Domain
  4. {
  5. public class CreatePerson : ICommand
  6. {
  7. public Guid Id { get; private set; }
  8. public string FirstName { get; private set; }
  9. public string LastName { get; private set; }
  10. public CreatePerson(Guid id, string firstName, string lastName)
  11. {
  12. Id = id;
  13. FirstName = firstName;
  14. LastName = lastName;
  15. }
  16. }
  17. }