Пример #1
0
        public async Task <ActionResult> Assign(AssignTodo item)
        {
            await _mediator.SendAsync(item);

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

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