/// <summary> /// Gets the CaseInfoDetails /// </summary> /// <param name="criteria">Criteria contains CaseInfoId</param> /// <returns></returns> public CaseInfoEntity GetCaseInfoDetails(Criteria criteria) { Check.RequireWithNullException(criteria != null, "criteria was null or empty; it has to have value within it."); var caseInfoEntity = new CaseInfoEntity(); using (var unitOfWork = new UnitOfWorkImpl(DataBaseConnectivity.Application)) { try { var icaseinfoRepository = new RepositoryImpl<CaseInfo>(unitOfWork.Session); caseInfoEntity = CaseMapper.GetCaseInfoEntity(icaseinfoRepository.Get(Convert.ToInt64(criteria.Value))); } catch (Exception ex) { unitOfWork.Rollback(); Logger.Error("Error encountered at GetCaseInfoDetails", ex); throw; } } return caseInfoEntity; }
public bool SaveCaseInfo(CaseInfoEntity caseInfoEntity) { throw new NotImplementedException(); }