Exemple #1
0
 public UserJobModel(UserJob obj, bool isLoadJob = true)
 {
     ShareFunctions.CopyPropertiesTo <UserJob, UserJobModel>(obj, this);
     if (isLoadJob)
     {
         Post = new JobPostModel(this.JobId);
     }
 }
Exemple #2
0
        private void LoadModel(JobPostModel source, JobPost dest)
        {
            ShareFunctions.CopyPropertiesTo <JobPostModel, JobPost>(source, dest);

            //dest.AspNetUser = DataContext.AspNetUsers.SingleOrDefault(x => x.Id.Equals(source.UserId));
        }