public void UpdateQuoteType(Dtos.UpdateQuoteTypeInput input) { //We can use Logger, it's defined in ApplicationService base class. //ERROR: Logger doesn't exist in ApplicationService base Logger.Info("Updating a task for input: " + input); //Retrieving a task entity with given id using standard Get method of repositories. var type = _quoteTypeRepository.Get(input.Id.Value); //Updating changed properties of the retrieved task entity. //if (input.FirstName != string.Empty) customer.FirstName = input.FirstName.Value; type.Quote = input.Quote; type.DisplayName = input.DisplayName; type.IsDeleted = input.IsDeleted; //customer.Id = _productRepository.Load(input.AssignedPersonId.Value); //customer.Purchases = _productRepository.Load(input.CustomerId.Value); //We even do not call Update method of the repository. //Because an application service method is a 'unit of work' scope as default. //ABP automatically saves all changes when a 'unit of work' scope ends (without any exception). }