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

            return(Ok(isSiteNameUnique));
        }
Example #3
0
        public IActionResult IsSiteNameUnique(string name)
        {
            var isSiteNameUnique = _siteRules.IsSiteNameUnique(name);

            return(Ok(isSiteNameUnique));
        }