public override IEditModel <ScienceRecordInfo> Create(ScienceRecordInfo model, ViewModelContext context) { var editModel = CopyCstor.New <ScienceRecordEditModel, IScienceRecordWritable> (model); editModel.Context = context; editModel.ScienceRecordType_Type = model.ScienceRecordType.Type; return(editModel); }
public override IEditModel <OccupiedPositionInfo> Create(OccupiedPositionInfo model, ViewModelContext context) { var editModel = CopyCstor.New <OccupiedPositionEditModel, IOccupiedPositionWritable> (model); editModel.Context = context; editModel.PositionTitle = model.Position.Title; editModel.DivisionTitle = model.Division.Title; editModel.DivisionStartDate = model.Division.StartDate; editModel.DivisionEndDate = model.Division.EndDate; return(editModel); }
public override ScienceRecordInfo CreateModel() { return(CopyCstor.New <ScienceRecordInfo, IScienceRecordWritable> (this)); }
public override OccupiedPositionInfo CreateModel() { return(CopyCstor.New <OccupiedPositionInfo, IOccupiedPositionWritable> (this)); }