public UpdateContractCommand(string clientName, ETypeOfContract type, decimal quantityTraded, decimal negotiatedValue, DateTime startedAt, int duration, byte[] file) { ClientName = clientName; Type = type; QuantityTraded = quantityTraded; NegotiatedValue = negotiatedValue; StartedAt = startedAt; Duration = duration; File = file; }
public Contract(string clientName, ETypeOfContract type, decimal quantityTraded, decimal negotiatedValue, DateTime startedAt, int duration, byte[] file, Guid createdBy) { ClientName = clientName; Type = type; QuantityTraded = quantityTraded; NegotiatedValue = negotiatedValue; StartedAt = startedAt; Duration = duration; File = file; CreatedBy = createdBy; }