Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int CalculateSoundVolume(string roomName, int currentUser)
- {
- {
- //Business Logic
- return finalApplauseVolume; //**say returning 75**
- }
- catch (Exception ex)
- {
- _logger.LogException(ex);
- throw;
- }
- }
- public IHttpActionResult CalculateSoundVolume()
- {
- try
- {
- //Some Logic
- var result = _applauseRepository.CalculateSoundVolume(huddleName, currentUser);
- return Ok(result); // **it returns 75 here in result**
- }
- catch (Exception ex)
- {
- _logger.LogException(ex);
- throw;
- }
- }
- public calculateSoundVolume()
- {
- var promise = this.applauseService.calculateSoundVolume();
- promise.then((res) => {
- this.$log.debug("Sound Volume : ", res);
- // Getting Resource [0] : '7' and [1] : '5'
- });
- }
- calculateSoundVolume()
- {
- return this.soundVolume.get().$promise;
- }
- public JContainer CalculateSoundVolume()
- {
- try
- {
- //Some Logic
- var result = new JObject(new JProperty("soundVolume", _applauseRepository.CalculateSoundVolume(huddleName, currentUser)));
- return result;
- }
- catch (Exception ex)
- {
- _logger.LogException(ex);
- throw;
- }
- }
- public calculateSoundVolume()
- {
- var promise = this.applauseService.calculateSoundVolume();
- promise.then((res) => {
- this.$log.debug("Sound Volume : ", res.soundVolume);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement