public PaymentMethod Map(CreateOrEditViewModel createOrEdit)
        {
            PaymentMethod paymentMethod = new PaymentMethod();

            if (createOrEdit.Id != null)
            {
                paymentMethod = this.RequestHandler.Storage.GetRepository <IPaymentMethodRepository>().WithKey((int)createOrEdit.Id);
            }

            paymentMethod.Code     = createOrEdit.Code;
            paymentMethod.Position = createOrEdit.Position;
            return(paymentMethod);
        }
 public PaymentMethod Map(PaymentMethod paymentMethod, CreateOrEditViewModel createOrEdit)
 {
     paymentMethod.Code     = createOrEdit.Code;
     paymentMethod.Position = createOrEdit.Position;
     return(paymentMethod);
 }