Exemple #1
0
        public async Task <IActionResult> AddUser([FromBody] TasklifyUser user)
        {
            try
            {
                var tmpUser = await _dal.AddUserAsync(user.Email, user.Name);

                return(Ok(tmpUser));
            }
            catch (Exception exception)
            {
                return(BadRequest(exception.Message));
            }
        }
Exemple #2
0
        public async Task <IActionResult> AddUser([FromBody] TasklifyUser user)
        {
            var tmpUser = await _dal.AddUserAsync(user.Email, user.Name);

            return(Ok(tmpUser));
        }