Example #1
0
        public IActionResult IsAppFolderUnique(string folder)
        {
            var isAppFolderUnique = _appRules.IsAppFolderUnique(folder);

            return(Ok(isAppFolderUnique));
        }
Example #2
0
        public async Task <IActionResult> IsAppFolderUnique(string folder)
        {
            var isAppFolderUnique = await Task.Run(() => _appRules.IsAppFolderUnique(folder));

            return(Ok(isAppFolderUnique));
        }
 private bool HaveUniqueFolder(AppDetails cmd, string folder)
 {
     return(_appRules.IsAppFolderUnique(folder, cmd.Id));
 }