Example #1
0
        public async Task <dynamic> Post([FromBody] Domain.Interfaces.UserModel user)
        {
            if (_cloudantService != null)
            {
                user._id = Guid.NewGuid();

                var response = await _cloudantService.CreateAsync(user);

                Console.WriteLine("POST RESULT " + response);

                return(response);
            }

            return(new { });
        }