public int Add(CaseVM oCaseVM) { var oClientProfile = _mappingHelper.Map <Case>(oCaseVM); _caseRepo.Add(oClientProfile, GetType().Name); return(this.unitOfWork.SaveChanges()); }
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); }
public int Add(CaseVM oCaseVM) { var oClientProfile = _mappingHelper.Map <Case>(oCaseVM); _caseRepo.Add(oClientProfile, GetType().Name); return(1); }
public int Add(ClientVM oClientVM) { var oClient = _mappingHelper.Map <Client>(oClientVM); _clientRepo.Add(oClient, GetType().Name); unitOfWork.SaveChanges(); return(oClient.ClientId); }
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; }
public int Add(Client oClientVM) { var oClientProfile = _mappingHelper.Map <Client>(oClientVM); _clientRepo.Add(oClientProfile, GetType().Name); return(1); }
public int Add(StaffVM oStaffModel) { var oStaffProfile = _mappingHelper.Map <Staff>(oStaffModel); _staffRepo.Add(oStaffProfile, GetType().Name); return(1); }
public int Add(CaseAssignmentVM oCaseAssignmentVM) { var oCaseAssignment = _mappingHelper.Map <CaseAssignment>(oCaseAssignmentVM); _caseAssignmentRepo.Add(oCaseAssignment, GetType().Name); return(this.unitOfWork.SaveChanges()); }
public async Task AddEntry(AddEntryModel model) { EntryEntity entryEntity = _mappingHelper.Map <EntryEntity, AddEntryModel>(model); await _entryRepository.AddEntry(entryEntity); }