public ActionResult AddTempHP(TempHPRequestModel model) { if (!ModelState.IsValid) { return(BadRequest()); } if (model.Amount < 0) { return(BadRequest(new { message = "Temporary HP amount must be a positive value. " })); } Character briv = _characterService.GetCharacter(); _characterService.AddTempHP(ref briv, model.Amount); return(Ok(briv)); }