コード例 #1
0
ファイル: FeedbackManager.cs プロジェクト: ammeep/giftme
        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
ファイル: IFeedbackRepository.cs プロジェクト: ammeep/giftme
 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);
        }