If your question is, was it illegal for them to let you go, the answer is no, it was not.

If that is not your question, please clarify.