public IActionResult DeleteTypeOfReaction([FromHeader(Name = "CommunicationKey")] string key, [FromQuery] int typeOfReactionID)
        {
            var type = typeOfReactionRepository.GetTypeOfReactionByID(typeOfReactionID);

            if (type == null)
            {
                return(StatusCode(StatusCodes.Status400BadRequest, "There is no type of reaction with given ID"));
            }

            try
            {
                typeOfReactionRepository.DeleteTypeOfReaction(typeOfReactionID);
                typeOfReactionRepository.SaveChanges();
                logger.Log(LogLevel.Information, contextAccessor.HttpContext.TraceIdentifier, "", String.Format("Successfully deleted type of reaction with ID {0} from database", typeOfReactionID), null);

                return(StatusCode(StatusCodes.Status204NoContent));
            }
            catch (Exception ex)
            {
                logger.Log(LogLevel.Error, contextAccessor.HttpContext.TraceIdentifier, "", String.Format("Error while deleting reaction with ID {0}, message: {1}", typeOfReactionID, ex.Message), null);

                return(StatusCode(StatusCodes.Status500InternalServerError));
            }
        }