public SelectedItemModel CreateAssignee(Subject subject)
 {
     return new SelectedItemModel()
         {
             Id = "0",
             Text = "asdas"
         };
 }
 private void SaveSubject(SubjectViewModel viewModel, Subject subject)
 {
     subjectService.Save(subject);
     Mapper.Map<SubjectViewModel, Subject>(viewModel, subject);
 }
        private void AddNewSubjects(Semester semester, IEnumerable<SubjectViewModel> subjectViewModels)
        {
            foreach (var item in subjectViewModels)
            {
                var subject = new Subject();
                if (IdChecker(item.Id))
                {
                    var dbSubject = subjectService.CreateOrOpen(long.Parse(item.Id));
                    Mapper.Map<Subject, Subject>(dbSubject, subject);
                    subject.Id = 0;
                }
                else
                {
                    subject.Id = 0;
                    subject.Name = SubjectIdPrefixHelper.Trim(item.Id);
                }

                subject.Semester = semester;
                SaveSubject(item, subject);
            }
        }