I suppose the only way to answer the question is to ask what is Ulloa's value now? Significantly more than £8m then yes, Leicester got a bargain. Same or less, then no they didn't.
After 7 goals in a season I wouldn't say you would get significantly more than £8m for Ulloa, so for me Leicester...