Creating endpoint that allows for student update
This commit is contained in:
@@ -56,6 +56,11 @@ namespace BrightGlimmer.Domain
|
||||
Longitude = longitude;
|
||||
}
|
||||
|
||||
public void Update(Address address)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void SetLatitudeAndLongitude(decimal latitude, decimal longitude)
|
||||
{
|
||||
Latitude = latitude;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user