Ejemplo n.º 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()));
        }
Ejemplo n.º 2
0
 public TodosHub(DbaseContext source)
 {
     Source = source;
 }