Both example one and two are civil cases. Civil cases are those that involve contracts and/or wrongful or negligent acts resulting in the private wrong, damage, or injury of someone or something.
State court has original jurisdiction over both examples due to both dealing with local citizens. If appealed, both cases may go before the federal court due to the question of infringement on constitutional rights in each example.