public ActionResult DeletedCommandById(Guid id) { var commandToBeUpdated = _commandService.GetCommandById(id); if (commandToBeUpdated == null) { return(NotFound("Command Not Found!")); } _commandService.DeletedCommandById(commandToBeUpdated); return(Ok(id)); }