public IActionResult Delete( [FromServices] IDeleteBlogCommand command, int id) => command.Execute(id);
public IActionResult Delete(int id, [FromServices] IDeleteBlogCommand command) { executor.ExecuteCommand(command, id); return(NoContent()); }