Fixed projects
This commit is contained in:
@@ -16,6 +16,8 @@ namespace Todo.Api.Hubs
|
||||
|
||||
public async Task CreateTodo(string todoTitle, string projectName)
|
||||
{
|
||||
if (todoTitle is null)
|
||||
throw new ArgumentException("title cannot be null");
|
||||
var _ = await _todoRepository.CreateTodoAsync(todoTitle, projectName);
|
||||
|
||||
var todos = await _todoRepository.GetNotDoneTodos();
|
||||
|
Reference in New Issue
Block a user