예제 #1
0
        public async Task <IActionResult> BaseTodos([FromServices] DbaseContext dbaseContext)
        {
            dbaseContext.Todo.Add(new Todo {
                Done = true, Description = Guid.NewGuid().ToString()
            });
            await dbaseContext.SaveChangesAsync();

            await GetUpdateTodosAsync();

            return(View(await dbaseContext.Todo.CountAsync()));
        }
예제 #2
0
 public TodosHub(DbaseContext source)
 {
     Source = source;
 }