Exemple #1
0
        /// <summary>
        /// Get the list of all containers
        /// </summary>
        public Response Index(dynamic parameters)
        {
            int mediaID = parameters.mediaID;

            if (mediaID == 0)
            {
                return(null);
            }

            var medium = Medium.Find(mediaID);

            return(Response.AsJson(
                       new ContainersResponse(medium)
                       ));
        }