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; }
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); }