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)); } }
public async Task <IActionResult> AddUser([FromBody] TasklifyUser user) { var tmpUser = await _dal.AddUserAsync(user.Email, user.Name); return(Ok(tmpUser)); }