/** Handle quantity deletion */ public static Result delete(Long id) { Quantity quantity = Quantity.find.ref(id); Long profileId = quantity.getProfileId(); quantity.delete(); flash("success", "quantity has been deleted"); return list(0, "name", "asc", "", profileId); }
public static Result list(int page, String sortBy, String order, String filter, Long profileId) { return ok( listForm.render( Quantity.page(page, 10, sortBy, order, filter, profileId), sortBy, order, filter, profileId)); }