Ejemplo n.º 1
0
        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);;
        }
Ejemplo n.º 2
0
 public List <Service> GetServicesFromPackage(ushort id)
 {
     return(PackageDAO.GetServicesFromPackage(id));
 }