public RequestEditModel(Request request, RequestHeader header) { Request = new RequestDetailForEditModel { ID = request.ID, Name = request.Name, Priority = request.Priority, DueDate = request.DueDate, ProjectID = request.ProjectID, ProjectName = request.Project.Name, ActivityID = request.ActivityID, SourceActivityID = request.SourceActivityID, SourceActivityProjectID = request.SourceActivityProjectID, SourceTaskOrderID = request.SourceTaskOrderID, Scheduled = request.Scheduled, MirrorBudgetFields = request.MirrorBudgetFields, MSRequestID = request.MSRequestID, ReportAggregationLevelID = request.ReportAggregationLevelID }; if (request.Activity != null) { Request.Activity = new RequestDetailActivityViewModel(request.Activity); } Header = header; }
public SharedRequestViewModel(Request r, RequestHeader header) { Request = r; Header = header; }