public async Task <IActionResult> AddTasks([FromBody] IEnumerable <TaskDto> tasks) { var currentUser = await _userManager.FindByNameAsync(_userManager.GetUserName(User)); await _taskService.AddUserTasks(currentUser, tasks); return(Ok()); }