/// <summary> /// To the model. /// </summary> /// <param name="value">The value.</param> /// <returns></returns> public static PersonAccount ToModel(this PersonAccountDto value) { PersonAccount result = new PersonAccount(); value.CopyToModel(result); return(result); }
/// <summary> /// Instantiates a new DTO object from the entity /// </summary> /// <param name="personAccount"></param> public PersonAccountDto(PersonAccount personAccount) { CopyFromModel(personAccount); }
/// <summary> /// To the dto. /// </summary> /// <param name="value">The value.</param> /// <returns></returns> public static PersonAccountDto ToDto(this PersonAccount value) { return(new PersonAccountDto(value)); }