public ActionResult GetServices(ushort id) { if (!Authentication.IsValid()) { return(Json(new { Error = "Not Authenticated" })); } JsonResult json = Json(new { services = PackageDAO.GetServicesFromPackage(id) }); json.MaxJsonLength = int.MaxValue; return(json);; }
public List <Service> GetServicesFromPackage(ushort id) { return(PackageDAO.GetServicesFromPackage(id)); }