public async Task <ActionResult> Assign(AssignTodo item) { await _mediator.SendAsync(item); return(RedirectToAction("Details", new { id = item.Id })); }
private static void AssignTodo(AssignTodo item) { var handler = new AssignTodoHandler(_db.Database); handler.SendAsync(item).Await(); }