コード例 #1
0
        public async Task <IActionResult> Post([FromBody] UserProfile value)
        {
            value.Id = 0;
            var result = await _repo.AddUserAsync(value);

            if (result > 0)
            {
                return(Created("", value));
            }
            else
            {
                return(BadRequest());
            }
        }