public string CustomerIncidentDisplay() { string displayIncident = "Incident for product " + ProductCode + " closed " + DateClosed.ToShortDateString() + " ( " + Title + " )"; return(displayIncident); }
public string CustomerIncidentDisplay() { //PostCondition:: returns Customer incident in the form a string string formatted = DateClosed.ToString("dd/MM/yyyy"); return("Incident for product " + ProductCode + " closed " + formatted.Replace("-", "/") + " (" + Title + ")"); }
public string customerIncidentDisplay() { if (DateClosed.ToString().Length == 0) { return("Incident for product " + ProductCode + " opened " + DateOpened + " (" + Title + ")"); } else { return("Incident for product " + ProductCode + " closed " + DateClosed + " (" + Title + ")"); } }
public string IncidentFormat() { return("Incident for product " + ProductCode + " closed " + DateClosed.ToShortDateString() + " (" + Title + ")"); }
public string CustomerIncidentDisplay() { string formatted = $"Incident for product {ProductCode} closed {DateClosed.ToShortDateString()} ({Title})"; return(formatted); }