public async Task <ActionResult> Assign(AssignTodo item)
        {
            await _mediator.SendAsync(item);

            return(RedirectToAction("Details", new { id = item.Id }));
        }
Beispiel #2
0
        private static void AssignTodo(AssignTodo item)
        {
            var handler = new AssignTodoHandler(_db.Database);

            handler.SendAsync(item).Await();
        }