Beispiel #1
0
        public IActionResult AddContact([FromBody] WebUser u)
        {
            var result = _contactDAL.AddUser(u);

            if (result != "")
            {
                return(BadRequest(new { message = result }));
            }
            return(Ok(new { message = "Registration successful" }));
        }