private bool HaveUniqueName(string name) { return(_siteRules.IsSiteNameUnique(name)); }
public async Task <IActionResult> IsSiteNameUnique(string name) { var isSiteNameUnique = await Task.Run(() => _siteRules.IsSiteNameUnique(name)); return(Ok(isSiteNameUnique)); }
public IActionResult IsSiteNameUnique(string name) { var isSiteNameUnique = _siteRules.IsSiteNameUnique(name); return(Ok(isSiteNameUnique)); }