コード例 #1
0
 public void EditPostforOtherDetails(other_detailsModel Other_detailsModel, other_details entity)
 {
     entity.propertyowner_name       = Other_detailsModel.propertyowner_name;
     entity.propertyowner_contact    = Other_detailsModel.propertyowner_contact;
     entity.propertyowner_address    = Other_detailsModel.propertyowner_address;
     entity.propertyowner_occupation = Other_detailsModel.propertyowner_occupation;
     entity.neighbour1_name          = Other_detailsModel.neighbour1_name;
     entity.neighbour1_contact       = Other_detailsModel.neighbour1_contact;
     entity.neighbour1_address       = Other_detailsModel.neighbour1_address;
     entity.neighbour1_occupation    = Other_detailsModel.neighbour1_occupation;
     entity.neighbour2_name          = Other_detailsModel.neighbour2_name;
     entity.neighbour2_contact       = Other_detailsModel.neighbour2_contact;
     entity.neighbour2_address       = Other_detailsModel.neighbour2_address;
     entity.neighbour2_occupation    = Other_detailsModel.neighbour2_occupation;
 }
コード例 #2
0
 /// <summary>
 /// Converts from.
 /// </summary>
 /// <param name="other_details">The other details.</param>
 /// <returns>other_detailsModel.</returns>
 public static other_detailsModel ConvertFrom(other_details other_details)
 {
     if (other_details == null)
     {
         other_details = new other_details();
     }
     return(new other_detailsModel()
     {
         propertyowner_name = other_details.propertyowner_name,
         propertyowner_contact = other_details.propertyowner_contact,
         propertyowner_address = other_details.propertyowner_address,
         propertyowner_occupation = other_details.propertyowner_occupation,
         neighbour1_name = other_details.neighbour1_name,
         neighbour1_contact = other_details.neighbour1_contact,
         neighbour1_address = other_details.neighbour1_address,
         neighbour1_occupation = other_details.neighbour1_occupation,
         neighbour2_name = other_details.neighbour2_name,
         neighbour2_contact = other_details.neighbour2_contact,
         neighbour2_address = other_details.neighbour2_address,
         neighbour2_occupation = other_details.neighbour2_occupation,
     });
 }