public void AddNewGift(Gift gift) { _loggingService.LogInformation(string.Format("User {0}({1}) is inserting a new gift.", _currentUser.UserName, _currentUser.AccountId)); gift.CreatedDate = DateTime.Now; gift.CreatedBy = _currentUser.AccountId; gift.LastUpdatedBy = _currentUser.AccountId; gift.LastUpdatedDate = DateTime.Now; gift.QuantityRemaining = gift.QuantityRequired; gift.IsActive = true; _giftRepository.InsertGift(gift); }