Continued to work on the update student handler

This commit is contained in:
Giovani
2019-04-29 13:54:10 -04:00
parent 125a9d4bb6
commit a25ff270c5
10 changed files with 114 additions and 24 deletions

View File

@@ -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;
}
}
}