public bool Store(HistoryModel historyModel) { const string Sql = "INSERT HistoryDetail(Name,Details, DateCreated) VALUES (@name,@details,@dateCreated)"; bool result = false; try { using (var conn = new SqlConnection(_settings.ConnectionString)) { result = conn.Execute(Sql, new { name = historyModel.Name, details = historyModel.Details, dateCreated = historyModel.DateCreated }) > 0; } } catch (Exception exception) { _logger.Error("SqlServerHistoryStorage#Store", exception); } return result; }
public bool Store(HistoryModel historyModel) { return(true); }
public bool Store(HistoryModel historyModel) { return true; }