コード例 #1
0
        public void CreateQuoteType(Dtos.CreateQuoteTypeInput input)
        {
            //We can use Logger, it's defined in ApplicationService class.
            //ERROR:  Logger.Info("Creating a task for input: " + input);

            //Creating a new Task entity with given input's properties
            var type = new QuoteType {
                Quote       = input.Quote,
                DisplayName = input.DisplayName
            };

            //Saving entity with standard Insert method of repositories.
            _quoteTypeRepository.Insert(type);
        }