Example #1
0
 public IssueModel(IssueModel issue)
 {
     LocationId    = issue.LocationId;
     this.ServerId = issue.ServerId;
     Title         = issue.Title;
     Description   = issue.Description;
     Longitude     = issue.Longitude;
     Latitude      = issue.Latitude;
     Status        = issue.Status;
     Severity      = issue.Severity;
     Created       = issue.Created;
     Edited        = issue.Edited;
     CreatedBy     = issue.CreatedBy;
 }
Example #2
0
        public IssueModel CreateUpdatedIssueViewModel()
        {
            IssueModel issue = new IssueModel
            {
                ServerId    = this.ServerId,
                LocationId  = LocationId,
                Description = Description,
                Longitude   = Longitude,
                Latitude    = Latitude,
                Status      = Status,
                Severity    = Severity
            };

            issue.CreatedBy = issue.CreatedBy;
            return(issue);
        }