Continued to work on the update student handler
This commit is contained in:
@@ -8,9 +8,9 @@ namespace BrightGlimmer.Domain
|
||||
[Table("Courses")]
|
||||
public class Course : Entity
|
||||
{
|
||||
public string Name { get; private set; }
|
||||
public string Description { get; private set; }
|
||||
public string Code { get; private set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Code { get; set; }
|
||||
|
||||
private Course() { }
|
||||
|
||||
@@ -20,5 +20,12 @@ namespace BrightGlimmer.Domain
|
||||
Description = description;
|
||||
Code = code;
|
||||
}
|
||||
|
||||
public void Update(Course course)
|
||||
{
|
||||
Name = course.Name;
|
||||
Description = course.Description;
|
||||
Code = course.Code;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user