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); }