public JsonpResult GetCategories()
{
IEnumerable<Category> source = this.CategoryServices.FindAllEntities(null, o => o.OrderBy(c => c.Name), null);
var data =
from c in source
select new
{
categoryid = c.CategoryId,
name = c.Name,
description = c.Description
};
return this.Jsonp(data);
}