I was looking at a code example in this website and I noticed that in one endpoint it used Ok() return type and in the other one it just returned the object. When should I use ActionResult's methods such as Ok(), Created(), ... and when should we just return the object?
