Пример #1
0
        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);
        }
Пример #2
0
 public void InsertFeeback(Feedback feedback)
 {
     var connection = Database.OpenConnection(_configuration.GiftmeConnectionString);
     connection.Feedback.Insert(feedback);
 }
Пример #3
0
        public void InsertFeeback(Feedback feedback)
        {
            var connection = Database.OpenConnection(_configuration.GiftmeConnectionString);

            connection.Feedback.Insert(feedback);
        }