/// <summary>
 /// Construct viewmodel
 /// </summary>
 /// <param name="customerAppIssue">CustomerAppIssue that this viewmodel represents</param>
 public CustomerAppIssueViewModel(Model.CustomerAppIssue customerAppIssue)
     : this()
 {
     this.CustomerAppIssueId = customerAppIssue.CustomerAppIssueId;
     this.CustomerAppId      = customerAppIssue.CustomerAppId;
     this.DateTime           = customerAppIssue.DateTime;
     this.Severity           = customerAppIssue.Severity;
     this.Message            = customerAppIssue.Message;
     this.Details            = customerAppIssue.Details;
 }
        /// <summary>
        /// Convert back to CustomerAppIssue instance
        /// </summary>
        /// <param name="original">Original CustomerAppIssue. If Null a new instance is created.</param>
        /// <returns>CustomerAppIssue containing viewmodel data </returns>
        public Model.CustomerAppIssue ToEntity(Model.CustomerAppIssue original)
        {
            var current = original ?? new Model.CustomerAppIssue();

            current.CustomerAppIssueId = CustomerAppIssueId;
            current.CustomerAppId      = CustomerAppId;
            current.DateTime           = DateTime;
            current.Severity           = Severity;
            current.Message            = Message;
            current.Details            = Details;

            return(current);
        }