public void FillModel(WorkExperience model) { model.WorkName = WorkName; model.PositionName = PositionName; model.Begin = int.Parse(Begin); model.End = int.Parse(End); }
public WorkExperienceViewModel(WorkExperience workExperience) { Id = workExperience.Id; Begin = workExperience.Begin.ToString(); End = workExperience.End.ToString(); WorkName = workExperience.WorkName; PositionName = workExperience.PositionName; Skills = workExperience.Skills.Select(skill => new SkillViewModel("DeleteSkillExperience", skill)).ToList(); }