public async Task <IActionResult> SetRating(RatingParameters rating) { if (ModelState.IsValid) { var temp = await enterpriseService.SetRating(rating); if (temp != null) { return(Ok(temp)); } else { return(BadRequest(new { Message = "Something went wrong. Please, try again later." })); } } else { return(BadRequest(new { Message = "Invalid parameters supplied." })); } }