public DataModel.Response.BaseResponse Delete(string id) { try { ITransactionHistoryRepository transactionRepository = RepositoryClassFactory.GetInstance().GetTransactionHistoryRepository(); transactionRepository.Delete(id); return(new BaseResponse { ErrorCode = (int)ErrorCode.None, Message = Resources.Resource.msg_delete_success }); } catch (Exception ex) { return(new BaseResponse { ErrorCode = (int)ErrorCode.Error, Message = ex.Message }); } }