define(["emberdata","app","ajax"],function(a,b,c){var d=a.attr;return b.Template=a.Model.extend({TemplateName:d("string"),Session:d("string"),Grade:d("number"),TemplateID:d("string")}),b.Template.reopenClass({methods:{create:{map:"BBC.PublicTemplate.AddPublicTemplate"},update:{map:"BBC.PublicTemplate.UpdatePublicTemplate"},"delete":{map:"BBC.PublicTemplate.DeletePublicTemplate"},find:{map:"BBC.PublicTemplate.GetPublicTemplateByID"},query:{map:"BBC.PublicTemplate.GetPublicTemplates",args:{}},getPublicTemplates:{map:"BBC.PublicTemplate.GetPublicTemplates",args:{term:"Term"}}},getTemplatesWithDistribution:function(a,b,d,e){return c.send({method:"BBC.GardenTemplate.GetTemplatesWithDistribution",data:{Term:a,Session:b,Grade:d,ClassID:e}})},updateGardenTopicDistribution:function(a,b){return c.send({method:"BBC.GardenTopic.UpdateGardenTopicDistribution",data:{Grade:a,PublicTemplateID:b}})},getGardenTemplateYears:function(){return c.send({method:"BBC.GardenTemplate.GetGardenTemplateYears",data:{}})}}),b.Template}),define(["ember","emberdata","bhyfserializer"],function(a,b,c){return App.TemplateSerializer=c.extend({primaryKey:"PublicTemplateID"})});