private void InitilizeSubject(InstanceTypes instanceType) { Subject = WebContext.Current.SubjectDicByType[instanceType.ToString()]; ISubjectService service = ServiceLocator.Current.GetInstance <ISubjectService>(); service.AttachProperties(Subject); }