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