예제 #1
0
        public bool CheckIsDuplicateNickName([FromBody] string data)
        {
            bool isDuplicateNickName = false;

            if (string.IsNullOrWhiteSpace(data))
            {
                throw new Exception("name cannot be empty exception");
            }

            if ((_VendorRepository.CheckIsDuplicateNickName(data)))
            {
                isDuplicateNickName = true;
            }

            return(isDuplicateNickName);
        }