Ejemplo n.º 1
0
        public void CreateTips(Dtos.CreateTipsInput 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 Tips {
                Title               = input.Title,
                Description         = input.Description,
                TipsCategoriesRefId = input.TipsCategoriesRefId,
                IsDeleted           = input.IsDeleted
            };

            //Saving entity with standard Insert method of repositories.
            _tipsRepository.Insert(type);
        }
        public void CreateTips(Dtos.CreateTipsInput 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 Tips { 
                Title = input.Title,
                Description = input.Description,
                TipsCategoriesRefId = input.TipsCategoriesRefId,
                IsDeleted = input.IsDeleted
            };

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