예제 #1
0
        public int Add(CaseVM oCaseVM)
        {
            var oClientProfile = _mappingHelper.Map <Case>(oCaseVM);

            _caseRepo.Add(oClientProfile, GetType().Name);
            return(this.unitOfWork.SaveChanges());
        }
예제 #2
0
        public int Add(StaffGroupVM oStaffGroupModel)
        {
            var oStaffGroupProfile = _mappingHelper.Map <StaffGroup>(oStaffGroupModel);

            _StaffGroupRepo.Add(oStaffGroupProfile, GetType().Name);
            return(this.unitOfWork.SaveChanges());
        }
        public int Add(CaseMappingVM oCaseMappingVM)
        {
            var oCaseMapping = _mappingHelper.Map <CaseMapping>(oCaseMappingVM);

            _caseMappingRepo.Add(oCaseMapping, GetType().Name);
            return(1);
        }
예제 #4
0
        public int Add(CaseVM oCaseVM)
        {
            var oClientProfile = _mappingHelper.Map <Case>(oCaseVM);

            _caseRepo.Add(oClientProfile, GetType().Name);
            return(1);
        }
예제 #5
0
        public int Add(ClientVM oClientVM)
        {
            var oClient = _mappingHelper.Map <Client>(oClientVM);

            _clientRepo.Add(oClient, GetType().Name);
            unitOfWork.SaveChanges();
            return(oClient.ClientId);
        }
예제 #6
0
        public void RegisterIndex(IIndexConfig index)
        {
            if (Indexes.TryGetValue(index.Name, out IIndexConfig baseConfig) == true)
            {
                if (!(index is BaseIndexConfig config))
                {
                    config = new BaseIndexConfig(index);
                }

                index = _mappingHelper.Map<IIndexConfig>(baseConfig, config);
            }

            Indexes[index.Name] = index;
        }
예제 #7
0
        public int Add(Client oClientVM)
        {
            var oClientProfile = _mappingHelper.Map <Client>(oClientVM);

            _clientRepo.Add(oClientProfile, GetType().Name);
            return(1);
        }
예제 #8
0
        public int Add(StaffVM oStaffModel)
        {
            var oStaffProfile = _mappingHelper.Map <Staff>(oStaffModel);

            _staffRepo.Add(oStaffProfile, GetType().Name);
            return(1);
        }
예제 #9
0
        public int Add(CaseAssignmentVM oCaseAssignmentVM)
        {
            var oCaseAssignment = _mappingHelper.Map <CaseAssignment>(oCaseAssignmentVM);

            _caseAssignmentRepo.Add(oCaseAssignment, GetType().Name);

            return(this.unitOfWork.SaveChanges());
        }
예제 #10
0
 public async Task AddEntry(AddEntryModel model)
 {
     EntryEntity entryEntity = _mappingHelper.Map <EntryEntity, AddEntryModel>(model);
     await _entryRepository.AddEntry(entryEntity);
 }