/// <summary> /// Converts this instance of <see cref="email"/> to an instance of <see cref="emailDto"/>. /// </summary> /// <param name="entity"><see cref="email"/> to convert.</param> public static emailDto ToDTO(this email entity) { if (entity == null) { return(null); } var dto = new emailDto(); dto.i_EmailId = entity.i_EmailId; dto.v_Email = entity.v_Email; entity.OnDTO(dto); return(dto); }