Beispiel #1
0
        private async Task <SqlCommand> AddReportAsync(SqlCommand command, Report model)
        {
            command.CommandText = RegistrationProcessRequestSQL.QueryAddReport();
            command.Parameters.AddWithValue("@ReportID", model.ID);
            command.Parameters.AddWithValue("@Title", model.Title);
            command.Parameters.AddWithValue("@ReportDescription", model.ReportDescription);
            command.Parameters.AddWithValue("@ReportSource", model.ReportSource);
            command.Parameters.AddWithValue("@LevelTypeID", model.LevelTypeID);
            command.Parameters.AddWithValue("@Events", model.Events);
            command.Parameters.AddWithValue("@Details", model.Details);

            await command.ExecuteNonQueryAsync();

            return(command);
        }