Пример #1
0
        /// <summary>
        /// To the model.
        /// </summary>
        /// <param name="value">The value.</param>
        /// <returns></returns>
        public static GroupRole ToModel(this GroupRoleDto value)
        {
            GroupRole result = new GroupRole();

            value.CopyToModel(result);
            return(result);
        }
Пример #2
0
 /// <summary>
 /// Instantiates a new DTO object from the entity
 /// </summary>
 /// <param name="groupRole"></param>
 public GroupRoleDto(GroupRole groupRole)
 {
     CopyFromModel(groupRole);
 }
Пример #3
0
 /// <summary>
 /// To the dto.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public static GroupRoleDto ToDto(this GroupRole value)
 {
     return(new GroupRoleDto(value));
 }