Creating endpoint that allows for student update

This commit is contained in:
2019-04-27 15:23:12 -04:00
parent 1a95acac01
commit 8cacaa36ce
7 changed files with 88 additions and 0 deletions

View File

@@ -56,6 +56,11 @@ namespace BrightGlimmer.Domain
Longitude = longitude;
}
public void Update(Address address)
{
}
public void SetLatitudeAndLongitude(decimal latitude, decimal longitude)
{
Latitude = latitude;

View File

@@ -41,6 +41,16 @@ namespace BrightGlimmer.Domain
this.phones = phones;
}
public void Update(Student student)
{
FirstName = student.FirstName;
MiddleName = student.MiddleName;
LastName = student.LastName;
Email = student.Email;
if ()
}
public void AddPhone(Phone phone)
{
phones.Add(phone);