Example #1
0
        public string GetListMediaFile()
        {
            Uri    requestUri = Context.Request.Url;
            string baseUrl    = requestUri.Scheme + Uri.SchemeDelimiter + requestUri.Host + (requestUri.IsDefaultPort ? "" : ":" + requestUri.Port);

            MediaFiles  media_obj = new MediaFiles();
            DataTable   dt        = media_obj.GetListByTypeId(2);
            JsonMethods json_obj  = new JsonMethods();
            string      jsonarray = json_obj.makejsonoftable(dt, makejson.e_without_square_brackets);

            return(jsonarray);
        }