public AdminProfileModel(AdminProfile adminProfile)
 {
     this.FirstName = adminProfile.FirstName;
     this.LastName = adminProfile.LastName;
     this.PhoneNumber = adminProfile.PhoneNumber;
     this.Email = adminProfile.Email;
     this.Description = adminProfile.Description;
 }
 /// <summary>
 /// Updates given AdminProfile instance according to model.
 /// Updating affects all properties of given instance represented in model.
 /// </summary>
 public void UpdateAdminProfile(AdminProfile adminProfile)
 {
     adminProfile.FirstName = this.FirstName;
     adminProfile.LastName = this.LastName;
     adminProfile.PhoneNumber = this.PhoneNumber;
     adminProfile.Email = this.Email;
     adminProfile.Description = this.Description;
 }
Ejemplo n.º 3
0
 public Admin()
 {
     Profile = new AdminProfile();
 }