Exemple #1
0
        public object Head(GetItemByNameImage request)
        {
            var type = GetPathValue(0);

            var item = GetItemByName(request.Name, type, _libraryManager, new DtoOptions(false));

            return(GetImage(request, item.Id, item, true));
        }
Exemple #2
0
        public object Get(GetItemByNameImage request)
        {
            var type = GetPathValue(0);

            var item = GetItemByName(request.Name, type, _libraryManager);

            return(GetImage(request, item, false));
        }
Exemple #3
0
        public object Get(GetItemByNameImage request)
        {
            var type = GetPathValue(0).ToString();

            var item = GetItemByName(request.Name, type, _libraryManager, new DtoOptions(false));

            return GetImage(request, item.Id, item, false);
        }
        public object Head(GetItemByNameImage request)
        {
            var type = GetPathValue(0);

            var item = GetItemByName(request.Name, type, _libraryManager);

            return GetImage(request, item, true);
        }
Exemple #5
0
        public object Head(GetItemByNameImage request)
        {
            var pathInfo = PathInfo.Parse(Request.PathInfo);
            var type     = pathInfo.GetArgumentValue <string>(0);

            var item = GetItemByName(request.Name, type, _libraryManager);

            return(GetImage(request, item, true));
        }
        public object Get(GetItemByNameImage request)
        {
            var pathInfo = PathInfo.Parse(RequestContext.PathInfo);
            var type = pathInfo.GetArgumentValue<string>(0);

            var item = GetItemByName(request.Name, type, _libraryManager).Result;

            return GetImage(request, item);
        }