Guest User

Untitled

a guest
Feb 17th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public sealed class EnrollCommand : ICommand
  2. {
  3. public long StudentId { get; }
  4. public string Course { get; }
  5. public string Grade { get; }
  6.  
  7. public EnrollCommand(long studentId, string course, string grade)
  8. {
  9. if (course == null || grade == null)
  10. throw ArgumentException();
  11.  
  12. Id = id;
  13. Course = course;
  14. Grade = grade;
  15. }
  16. }
Add Comment
Please, Sign In to add comment