Exemplo n.º 1
0
        public ActionResult Post(string username, [FromBody] Profile value)
        {
            if (!UserService.Exists(username))
            {
                return(BadRequest(new { error = "user by that username was not found." }));
            }

            ProfileService.AddProfileToUser(username, value);
            return(Ok());
        }