public IActionResult IsAppFolderUnique(string folder) { var isAppFolderUnique = _appRules.IsAppFolderUnique(folder); return(Ok(isAppFolderUnique)); }
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)); }