Пример #1
0
        public IActionResult AddClinkerInterest(int clinkerId, [FromBody] string interest)
        {
            var selectedClinker = _repository.GetById(clinkerId);

            _repository.AddInterest(selectedClinker, interest);
            return(Ok($"Congratulations! You are now interested in {interest}."));
        }
        public IActionResult UpdateClinkerInterest(Guid clinkerId, Guid interestId)
        {
            var repo = new ClinkerRepository();

            var clinkerThatGotUpdated = repo.AddInterest(clinkerId, interestId);

            return(Ok(clinkerThatGotUpdated));
        }