public ActionResult <Folder> GetFolder(int id)
        {
            Folder folder = _folderRepository.GetBy(id);

            if (folder == null)
            {
                return(NotFound());
            }
            return(folder);
        }
Exemplo n.º 2
0
        public bool FolderExists(int id)
        {
            var folder = _folderRepository.GetBy(id);

            return(folder != null);
        }