public UserJobModel(UserJob obj, bool isLoadJob = true) { ShareFunctions.CopyPropertiesTo <UserJob, UserJobModel>(obj, this); if (isLoadJob) { Post = new JobPostModel(this.JobId); } }
private void LoadModel(JobPostModel source, JobPost dest) { ShareFunctions.CopyPropertiesTo <JobPostModel, JobPost>(source, dest); //dest.AspNetUser = DataContext.AspNetUsers.SingleOrDefault(x => x.Id.Equals(source.UserId)); }