private HistoryModel AddHistory(int amount, bool isSuccess, DateTime executionTime) { var history = new HistoryModel { TotalAmount = amount, IsSuccess = isSuccess, ExecutionTime = executionTime }; _dao.Add(history); return(history); }