public void SubmitFeedback(UserFeedback userFeedback) { _loggingService.LogInformation(string.Format("Inserting feedback from {0}",userFeedback.Name)); Feedback feedback = new Feedback { Name = userFeedback.Name, InterpretationComments = userFeedback.InterpretationComments, WasItClear = userFeedback.WasItClear, NotClearComments = userFeedback.NotClearComments, PricingModelComments = userFeedback.PricingModelComments, AgreesWithPricingModels = userFeedback.AgreesWithPricingModels, WantsToSeeReservedGifts = userFeedback.WantsToSeeReservedGifts, SeeReservedGiftsComments = userFeedback.SeeReservedGiftsComments, FinalComments = userFeedback.FinalComments, CreateDate = DateTime.Now, CreatedBy = _currentUser.AccountId, LastUpdatedBy = _currentUser.AccountId, LastUpdatedDate = DateTime.Now, }; _feedbackRepository.InsertFeeback(feedback); }
public void InsertFeeback(Feedback feedback) { var connection = Database.OpenConnection(_configuration.GiftmeConnectionString); connection.Feedback.Insert(feedback); }