Skip to content

Instantly share code, notes, and snippets.

@armed
Created November 10, 2010 08:23
Show Gist options
  • Save armed/670543 to your computer and use it in GitHub Desktop.
Save armed/670543 to your computer and use it in GitHub Desktop.
package controllers;
import models.Client;
import play.mvc.Controller;
public class Clients extends Controller {
public static void show(Long id) {
Client client = Client.findById(id);
render(client);
}
public static void delete(Long id) {
Client client = Client.findById(id);
client.delete();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment