From c48651e2a37e8af5f1eafff10119eedefa4f96e7 Mon Sep 17 00:00:00 2001 From: ​ Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: customer maintenance --- .../CustomerMaintenance/Customer.cs | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 customer_maintenance/CustomerMaintenance/Customer.cs (limited to 'customer_maintenance/CustomerMaintenance/Customer.cs') diff --git a/customer_maintenance/CustomerMaintenance/Customer.cs b/customer_maintenance/CustomerMaintenance/Customer.cs new file mode 100644 index 0000000..138b469 --- /dev/null +++ b/customer_maintenance/CustomerMaintenance/Customer.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace CustomerMaintenance +{ + public class Customer + { + public string FirstName{get; set;} + public string LastName{get; set;} + public string Email{get; set;} + + public Customer(string firstName = "", string lastName = "", + string email = "") => + (this.FirstName, this.LastName, this.Email) + = (firstName, lastName, email); + + public string GetDisplayText() { + return FirstName + " " + LastName + + ", " + Email; + } + } +} -- cgit 1.4.1