public IHttpActionResult ProcessPerson(Person person) { if (!ModelState.IsValid) { return(BadRequest("Not a valid model")); } decimal amount = Convert.ToDecimal(person.Amount); person.AmountInWord = processLogic.NumberToWord(amount); return(Ok(person)); }