Created
November 10, 2010 08:23
-
-
Save armed/670543 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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