public DataModel.Response.FindItemReponse <DataModel.Model.TransactionHistoryModel> FindByID(string id) { try { ITransactionHistoryRepository transactionRepository = RepositoryClassFactory.GetInstance().GetTransactionHistoryRepository(); TransactionHistory transaction = transactionRepository.FindByID(id); var _transaction = MapperUtil.CreateMapper().Mapper.Map <TransactionHistory, TransactionHistoryModel>(transaction); return(new FindItemReponse <TransactionHistoryModel> { Item = _transaction, ErrorCode = (int)ErrorCode.None, Message = string.Empty }); } catch (Exception ex) { return(new FindItemReponse <TransactionHistoryModel> { ErrorCode = (int)ErrorCode.Error, Message = ex.Message }); } }